// Terminate let workflow terminate.
Terminate let workflow terminate.
// Terminate let workflow terminate .
func (exec *executor) Terminate(message string) {
	exec.terminated = true
	exec.wfStatus.Phase = common.WorkflowStepPhaseSucceeded
	exec.wfStatus.Message = message
	exec.wfStatus.Reason = StatusReasonTerminate
}
func ( exec * executor ) Terminate ( message string ) { exec . terminated = true exec . wfStatus . Phase = common . WorkflowStepPhaseSucceeded exec . wfStatus . Message = message exec . wfStatus . Reason = StatusReasonTerminate }
Terminate let workflow terminate.
Terminate let workflow terminate .