Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

You can explicitly register the activity with a timer and call the onTimedOut() method yourself or just call the startWithTimeout() method to start the activity registering the timeout.

Joins

Its very common to want to join on the completion of a number of tasks. e.g. wait until all of activities A, B and C are done, then perform activity D.

So we have 2 helper classes to provide joins.

JoinAll

This class will join on the completion of all of the child workflows. You can use a timeout to fail the activity if the join does not complete in a specified time.

JoinQuorum

This class will join on the completion of a quorum of the child workflows (i.e. a majority of them complete successfully). You can use a timeout to fail the activity if the join does not complete in a specified time.

Join conditions

In workflows you often want to fork parallel steps and then join on certain events. You often have complex logic to decide on what the join condition is. e.g. in pseudo code

...