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

How to specify an end workflow step in if StepBody

Open bikaqiou2000 opened this issue 6 years ago • 2 comments

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'
            },
	    }
	]
}

bikaqiou2000 avatar Jan 20 '20 07:01 bikaqiou2000

how do we write it in JSON or YAML?

NameIsBad avatar Jan 04 '21 09:01 NameIsBad

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.

wfcore-manager avatar Aug 22 '26 18:08 wfcore-manager