Rule Event - Not working as expected

Certified Senior Developer

Appian 20.2 - on-perm

Had used a rule Event on a Process model , defined to call expression rule on it.

instance is broken with error " ERROR:EVAL:@reason=Rule XXX has invalid form, so cannot be evaluated.

refered to link https://community.appian.com/support/w/kb/1239/kb-1794-details-error-eval-reason-index-error-thrown-when-using-escalations-timers-and-exception-flows

and had removed all parameter names while calling the Expression rule.

  Discussion posts and replies are publicly visible

Parents Reply Children
  • Yes. I've used the rule event once or twice in the past I(which goes to show how often it gets used) to provide a synchronization point between two threads of processing. Imagine a process flow that splits into two parallel flows that run concurrently. I wanted flow B to do some processing and then wait until flow A had reached a certain point. So I used the Rule Event to suspend flow B, using a Boolean pv! which had initially been set to false. Flow A then at some point flips the Boolean pv! to true and Flow B continues processing.

    I can only assume that the Rule Event is "polling" the pv! in this instance to determine if it's true or false.

    The problem is you have to be certain that the evaluated value for the Rule Event will resolve to true. In the above example I had designed it explicitly to become true in that I knew Flow A would flip the pv! from false to true.