Workflow

The Hero

Token Responsibilities

  • The Token is the actor in all of the scenarios we're going to look at, following the rules set by the gateway. 
  • Tracks where in a workflow's execution we are.
  • Tracks if the current path is "Active" or "Inactive".

Setting the Stage

Gateway Rules

Gateway Responsibilities

  • Gateways determine where it can go and what it can do, but the token does the going and doing. 
  • Should come in matched pairs.

Why? 

This seems complicated.

So you can make sense of this:

Inbound

  • All paths must reach the gateway as "Active".
  • All paths are executed, in order.
  • No Conditions

Outbound

Inbound

  • All paths must reach the gateway as "Active".
  • All paths are executed, in order.
  • No Conditions

Outbound

Inbound

  • Any path must reach the gateway as "Active".
  • Conditional.
  • All paths are tried, in order, and all that evaluate true will be executed.

Outbound

Inbound

  • Any path must reach the gateway as "Active".
  • Conditional.
  • All paths are tried, in order, and all that evaluate true will be executed.

Outbound

Inbound

  • Any path must reach the gateway as "Active".
  • Conditional.
  • All paths are tried, in order, and only the first to evaluate true will be executed.

Outbound

Inbound

  • Any path must reach the gateway as "Active".
  • Conditional.
  • All paths are tried, in order, and only the first to evaluate true will be executed.

Outbound

There is good news

Test Coverage

Parallel:                          196

Inclusive:                        299

Exclusive:                       310

Permutation:                 985

Total: 1789 lines of testing!

Workflow Gateways

By ccflack

Workflow Gateways

  • 38
Loading comments...

More from ccflack