workflow-core
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)?
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!
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