Define conditional transitions using JSON #64
Labels
blocked: conflict/dependency
Something else is blocking this.
scope: backend
Work involving the backend / Django REST project.
size: hours
This should take less than a day.
type: feature
A piece of functionality of the product.
Background & Context*
Users should be able to define conditional transitions that will be evaluated before the transitions are called/executed. This means that users can create if statements/branches within their flows.
Goal*
We want to allow users to apply conditional logic and branching statements to their flows.
Implementation Details*
We need to first agree on the JSON schema/format for defining these conditions. I think we can use the SQL/JSON Path Language from Postgres. Here's a basic idea of how it could work.
Probably just best to create a custom
JSONField
for theTransitionSchema.condition
field and then this serialization can be taken care of by theModelViewSet
.Acceptance Criteria*
TransitionSchema
. This is okay if it's just on theModelViewSet
of the existingTransitionSchema
view.Dependencies
Blockers:
TransitionSchema
needs to exist before this work can be started.*required field.
The text was updated successfully, but these errors were encountered: