I have process with multiple approvals. Manager approval i had to give condition in XOR that the tasktype is modified and particular field is changed then it should go to Admin approval.Otherwise it should skip the Admin flow. i have given this condition in XOR:
if = and(pv!approved,or(pv!tasktype=con!MODIFY_TASK,pv!segemnt.serviceDate - true -goto-AdminApproval,
Else if =pv!approved-true-go to join
else if no rules are true - go to - accontant.
Thanks
Discussion posts and replies are publicly visible
Did you have a question?
yes.. so the process is taking admin flow when ever the tasktype=con!MODIFY_TASK. its not taking the other condition
The second condition is only ever evaluated if the first condition is false - that's how XOR works.
You can use a complex node or a series of XOR nodes to achieve what you are after.
With this condition even if the field value is false its still taking the admin path. According to my requirement it should take the join path when field value(pv!segemnt.serviceDate) is not change .can you tell me how i can i fix this condition
I think (but not 100% sure) that Mike has already addressed this.
If the pv!tasktype=con!MODIFY_TASK and pv!approved=TRUE then it will take the first path, the AdminApproval path, regardless of what pv!segemnt.serviceDate is.
It may help to have a screenshot of the XOR node along with any code that is being evaluated that isn't visible because otherwise we're just guessing.
When you say "field value is false" are you talking about pv!approved? If so I'm not sure what might be happening, without seeing some sort of confirmation of all the variable values in your process instance. One additional thing I was going to warn you about is, in an and() statement, you should be aware that if any value it receives resolves to null(), the and() will treat that as TRUE for some reason. So absolutely make sure your pv!approved contains a true or false value and not a null.