Workflow -Parallel Split

0
Hi, in my workflow, i have a  flow where it can be executed manually by a user as a user task  or it can be an automated check where a particular condition is met it passess to the next workflow step.I am using parallel split to split the flow into Manual task, and automated task.Only one of them is to be executed. i.e  if the automated flow is approved first, then the manual flow/task should be cancelled and workflows moves to the next step.Is there a possibility for this, or any different approach can be used.
asked
2 answers
0

Hi Gokul Krishna,

You can use a Decision in the workflow instead of a parallel split. A Decision allows only one path to be executed based on the defined condition, ensuring that either the manual task or the automated task runs — not both.

Refer: Mendix Documentation – Decision in Workflows

answered
0

Hi Gokul,

 

One way to do it is to programatically "reject" the discarded task as a "system user". For that you can use the CommunityCommons.ExecuteMicroflowAsUser.

See this forum post or this one. Hope it helps.

 

The recently introduced boudary events might also help, depending on your requirements.

 

Please accept this answer if it solves the issue.

 

Best regards,

João

answered