workflow-core
workflow-core copied to clipboard
How to specify an end workflow step in if StepBody
thanks for you great job . I have a question, how can i specify a endstep to terminate workflow instance, in if StepBody the dsl json may as below:
{
'Id': 'HelloWorld',
'Version': 1,
'DataType': 'HumanWorkFlow.Test1.Steps.ApprovalContextData, HumanWorkFlow.Test1',
'Steps': [
{
'Id': 'mywait1',
'StepType': 'HumanWorkFlow.Test1.Steps.ApprovalWaitFor, HumanWorkFlow.Test1',
'NextStepId': 'MyIfStep',
'Inputs': {
'EventName': '""apr1""',
'EffectiveDate': 'DateTime.Now'
},
'Outputs': {
'Context': 'step.Context'
}
},
{
'Id': 'MyIfStep',
'StepType': 'WorkflowCore.Primitives.If, WorkflowCore',
'NextStepId': 'op1',
'Inputs': { 'Condition':'(data.Context.ToString() == ""NO"")' },
'Do': [[
{
'Id': 'do1',
'StepType': <<end workflow?>>,
}
]]
},
{
'Id': 'op1',
'StepType': 'HumanWorkFlow.Test1.Steps.ApprovalNode, HumanWorkFlow.Test1',
'Inputs': {
'Context': 'data.Context'
},
}
]
}
how do we write it in JSON or YAML?
Closing as not planned — this has been open for several years without recent progress. Please open a new issue if this is still relevant on a current Workflow Core release.