Skip to main content
February 17, 2022
Solved

Go through a process node twice?

  • February 17, 2022
  • 4 replies
  • 0 views

My question is, if it is possible to go through a process node twice. Here is an example (I understand this could be designed better with a subprocess etc).

The process initially saves data from the form into the TravelRequest DB table. If there is a comment it saves it to the Comments DB table.

Later the Supervisor adds another comment through a user input task. 

Looking at the process details I can see it does not go through the gateway a second time.

Kind regards,

    Best answer by danny.verb

    XORs can only have one incoming path but script tasks can have multiple. Have your two AND gateways both link to the script task and then have the script task be the only node pointing to the XOR.

    4 replies

    danny.verb
    February 17, 2022

    These docs should help docs.appian.com/.../Process_Model_Recipes.html

    Before any gateway nodes you wan to go through again, place a blank script ask before it. 

    You can determine the number of times that a flow token repeats a loop by placing a gateway in the loop.

    • When a looped flow enters an OR or an XOR gateway, the gateway pauses after the first instance token passes through until all other incoming flows arrive.
    • Place an empty Script Task activity between the looped flow source(s) and the gateway to remove this restriction.
    February 17, 2022

    I added an empty Script Task, however this hasnt resolved.

    danny.verb
    February 17, 2022

    XORs can only have one incoming path but script tasks can have multiple. Have your two AND gateways both link to the script task and then have the script task be the only node pointing to the XOR.