project-flogo / flow

Flow is a flow-based process engine implementation for processing event-driven requests.
BSD 3-Clause "New" or "Revised" License
95 stars 38 forks source link

add env flag to change task link priority #183

Closed abhijitWakchaure closed 1 year ago

abhijitWakchaure commented 1 year ago

What kind of change does this PR introduce? (check one with "x")

[] Bugfix
[x] Feature
[] Code style update (formatting, local variables)
[] Refactoring (no functional changes, no api changes)
[] Other... Please describe:

Fixes: #

What is the current behavior? Currently the order of execution for link types is this:

  1. Label or success branch
  2. Otherwise branch
  3. Expression branches
  4. Default or dependency link type

What is the new behavior? When we set the env flag FLOGO_TASK_PRIORITIZE_EXPR_LINK to true the order will change to:

  1. Expression branches
  2. Otherwise branch
  3. Label or success branch
  4. Default or dependence link type

The default value for this flag is set to false. This will ensure the old behavior is unchanged.