PublicAPI.Processes.WorkflowInstance.TerminateProcess ELMA API Documentation
Terminate process instance
 
 
Syntax

public void TerminateProcess(
	WorkflowInstance instance,
	string reason
)

Parameters

instance
Type: WorkflowInstance
Process instance, which needs to be terminated. Object. Access path: PublicAPI.Processes.WorkflowInstance
reason
Type: System String
Process termination reason
Examples

//load the process instance by ID 
var instance = PublicAPI.Processes.WorkflowInstance.Load(3);
//process termination reason 
var reason = "Process termination reason";

//terminate the process
PublicAPI.Processes.WorkflowInstance.TerminateProcess(instance, reason);
See Also