I want a user task not to happen in case a condition is not verified

0
So I am checking if a reviewer is empty or not. In case it is the microflow should end and not conclude the user task.  Like I have it right the the user task is completed after the break event. I want the MF to end. I have tried to put all the activities on the true branch, but it will eventually end the user task even if the reviewer is empty.
asked
2 answers
0

Hi helga,

It shouldn't be the case ideally that it will anyhow complete the user task even if the flow is not true

but my possible solution will be

From Where this microflow is being triggered if it is a button , create two buttons( 1 with onclick microflow with complete task and 2nd one with validation msg only) with same caption  and wrap these buttons inside a dataview and put datasource as microflow in dataview and return reviewer list from microflow.

make both buttons visibility based on if returned reviewer list is empty or not ,.the button which will be visible on reviewer empty , call microflow with validation msg only.

 

answered
0

Hi Helga,

I think you are trying to not execute after loop part when the condition is false(reviewer is empty)

 

Do one thing create one int/any variable before the decision 

If condition satisfied change the variable value like 1,2 if not satisfied keep 0.

 

After loop before user task completed take another decision and check variable value Count>0 if condition satisfied write your MF logic,

if not satisfied end the event.

 

Hope you like the answer.

answered