XOR gateway expression

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

Parents Reply Children
  • 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.

  • 0
    Certified Lead Developer
    in reply to bin18

    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.