Dynamic workflow using json

Trying to achieve dynamic workflow

In signal stage. I am able to send the signal also I can see the data changes. but workflow not getting triggered not executing the while loop again after state changes.

This is the front end result. All executed but signal is not triggered the next execution. Workflow is still in pending state.

Can you show your signal handler code, or the part of your DynamicWorkflow where you register DynamicSignalHandler via Workflow.registerListener please?

Could you also explain what you are trying to achieve? You are evaluating an expression and setting its boolean result to isSuccess and then calling
Workflow.await(() -> isSuccess) , is this by design in case the expression evaluates to false or something else?

Also would suggest to run your expressions in activities or local activities instead of in workflow code, that way they can be retried and probably more important they would not be re-evaluated on workflow replay.

Thanks for quick response.

I was trying to achieve the dynamic workflow by writing my own json sequence but failed. So I have started using DSL example to achieve the same. I am able to resolve the issue. Now closing this question.
Also I have created the Frontend for flow diagram for achieve DSL using drag and drop functionality.

Can you show your signal handler code, or the part of your DynamicWorkflow where you register DynamicSignalHandler via Workflow.registerListener please?

  • I had declared @SignalMethod

Could you also explain what you are trying to achieve? You are evaluating an expression and setting its boolean result to isSuccess and then calling
Workflow.await(() -> isSuccess) , is this by design in case the expression evaluates to false or something else?

  • yes it’s Boolean which gives true/false

Also would suggest to run your expressions in activities or local activities instead of in workflow code, that way they can be retried and probably more important they would not be re-evaluated on workflow replay.

  • sure