Skip to Content

Fork with two parallel branches, one necessary branch with no waiting for another branch

Hello Experts,

I have been brainstorming in one of the customer system on one issue. Requirement is as below:

1. There is a loop.

2. Inside loop, fork with two parallel branches and one necessary branch(as of now) is being used. One branch triggers sub workflow which creates dialog step for user and other branch waits for an event to occur.

Here requirement is, if suitable event occurs OR that dialog stop gets completed, workflow execution should progress. Also if any one of them occurs, other branch should not be forcefully terminated.

I am quite unsure whether this is possible or not. Please help out.

Regards,

Harsh

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Apr 13, 2016 at 05:11 PM

    "if suitable event occurs OR that dialog stop gets completed, workflow execution should progress." this usually means that the other branch of the fork ends and the workflow continues. If not, how should the workflow progress? what should happen next?

    Add comment
    10|10000 characters needed characters exceeded

    • Hi,

      That's what I meant with my scenario.

      Instead of using a loop you use recursive workflows and additionally you use a separate (yet to be developed) event to control when the entire workflow is completed.

      Kind regards,

  • Apr 13, 2016 at 10:18 PM

    Hello,

    Execution can't continue after a fork until it (the fork) is completed so you will need to find another way to do this.

    Or maybe you could put the rest of the loop in a sub-workflow and call it in both sides of the fork.

    I'm struggling to think of an example where you would want to do this. What is your scenario? Why keep waiting for that event?

    regards

    Rick

    Add comment
    10|10000 characters needed characters exceeded