serverlessworkflow / sdk-typescript

Typescript SDK for Serverless Workflow
https://serverlessworkflow.io/
Apache License 2.0
64 stars 16 forks source link

Diagram generation - event-based switch state conditions #142

Closed tsurdilo closed 3 years ago

tsurdilo commented 3 years ago

Data-based switch state condition diagrams show the "condition" expression on the transitions, for example:

Screen Shot 2021-10-25 at 2 34 15 PM

For event-based switch state, there is nothing shown on the transition. Please add the "eventRef" value on the transitions for that.

To reproduce on serverlessworkflow.io/editor pick the "Event-based decision example" and see the diagram.