Skip to main content
amaans4178
November 18, 2024
Solved

Activity Chaining For User Input Task On And Node

  • November 18, 2024
  • 6 replies
  • 0 views

Hi,

I have a process model where a rule is processed in a script task running parallel to a user input task. At the second AND gate, there are two possible scenarios:

  1. First API Call Path Reaches the AND Gate First: The API path reaches the AND gate before the user submits the task. This scenario works as expected, triggering the next chained User Input Task (UIT) in the process.

  2. User Submits the Task First: The user submits the task before the API path reaches the AND gate. In this case, the next UIT is not triggered as expected.


    the API call is not an actual API call but an expression rule with dummy data in output

Best answer by mikes0011

The behavior you describe (though it would require an ENORMOUSLY slow "api call" node execution time) is expected behavior as far as I can see.  FWIW, you would not apply activity chaining on the "bottom" path of the initial "AND" split - it is only needed for the flow through the user-attended node(s).

That said, what exactly is your question?

6 replies

mikes0011
mikes0011Answer
Brainy
November 18, 2024

The behavior you describe (though it would require an ENORMOUSLY slow "api call" node execution time) is expected behavior as far as I can see.  FWIW, you would not apply activity chaining on the "bottom" path of the initial "AND" split - it is only needed for the flow through the user-attended node(s).

That said, what exactly is your question?

amaans4178
November 19, 2024

Thanks Mike, yeah my question is how it is an expected behavior, why in the second case the second UIT is not opening ? is it possible or recommended to do parallel processing like this ?

stefanhelzle0001
November 19, 2024

Activity chaining works only when that chain is not interrupted. When you API call takes longer, the AND node breaks that chained flow for the user. That second task is still assigned to the user who can find it in his task list.