workflow-core icon indicating copy to clipboard operation
workflow-core copied to clipboard

How to get the stepid of the previous node in stepbody (stepid defined in JSON instead of steppid in executionpointer)?

Open oicevar1 opened this issue 5 years ago • 1 comments

In stepbody, the executionpointer ID of the superior node can be obtained through istepexecutioncontext, and the context.Workflow.ExecutionPointers . findbyid method gets executionpointer information, but it can't find the corresponding stepid defined in JSON. Please help me, thank you!

oicevar1 avatar Dec 09 '20 10:12 oicevar1

You can use iworkflowregistry in the middleware to obtain the definition of workflow. All the steps are included in the definition. You can use the context.Step.StepId To find the corresponding step

oicevar1 avatar Dec 14 '20 03:12 oicevar1