Click or drag to resize

RuntimeServiceCanCancelProcessInstance Method

Verify if the user can cancel a process instance

Namespace:  Advantys.Workflow.Web.Services.Processes.Runtime
Assembly:  Advantys.Workflow.Web.Services.Processes.Runtime (in Advantys.Workflow.Web.Services.Processes.Runtime.dll) Version: 7.15.0.29499 (7.15.0.201904253)
Syntax
public bool CanCancelProcessInstance(
	int processInstanceId,
	bool isSuperUserMode
)

Parameters

processInstanceId
Type: SystemInt32
ID of the request to cancel.
isSuperUserMode
Type: SystemBoolean
Indicates to run in super user mode.

Return Value

Type: Boolean
True if the user can cancel the request
Remarks
Available since WorkflowGen version: 5.6.4

Only requests belonging to the connected user can be verified if he is allowed to cancel when isSuperUserMode is false.

Optional Parameters.

These parameters can be used in the query string or as parameters of the SOAP headers (see examples for more information).

delegateUsername (string)Specifies the delegate username for delegation mode.
impersonateUsername (string)Username to use for impersonation. Operation is available for allowed users only.


See Also