Add conditional logic evaluation to the flow engine #65
Labels
blocked: conflict/dependency
Something else is blocking this.
scope: backend
Work involving the backend / Django REST project.
size: days
This should only take a few days.
Background & Context*
The flow engine needs to evaluate the conditions defined within a
TransitionSchema
before the transition can be executed.Goal*
Flase
then it should choose another. This process should continue until either a transition can be executed or no transition conditions evaluate toTrue
and the flow should be stopped in its current state.Implementation Details*
Depending on what templating engine we decide on for defining properties within JSON conditions. These properties will need to be injected before the condition is evaluated.
Acceptance Criteria*
What are the specific, measurable outcomes that indicate the task is completed? Try use a task list of bullet points.
A simple test asserting that if a condition evaluates to false and no other transition can be taken, the flow will be stopped.
A simple test with two transitions, both of type automatic where one condition should evaluate to
False
and the otherTrue
. Only the transition that evaluates toTrue
should be executed.A simple test with one transition with a condition that evaluates to
True
. Assert that the transition was in fact executed.Dependencies
Blockers:
*required field.
The text was updated successfully, but these errors were encountered: