BPT Human Activity "OnClose" / Trigger on more than one status
Question

Hi.

Beginner-Question BPT - Human Activity:

If I want to go to the next workflow step (eg. to a decision) when the entity changes to a specific status (let's say "status_one"). This is easy because you can set this as a property directly.

But if you want to go to the next workflow step when the status changes to "status_one" OR"status_two" you cannot do this as a property.

What's the best way to do it? Leave the status attribute empty in the "OnClose" property? Then make a decision and if the status hast not changed to "status_one" or "status_two" go back to the same human activity?

But in this case there would be a new human acitivity created on EVERY update on the entity? Not just on updating the status, right?

Regards Alex



mvp_badge
MVP

Hi Alex,


You can set more logic on your OnClose event by right clicking the activity and selecting the OnClose option:


Then on the OnClose, you just validate the status to be the 1 or 2. If it is true, you continue, otherwise you launch the Abort Activity Change Exception, like on the screen below:



Hope it helps.


Kind Regards,
João

Thank you very much João!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.