Click or drag to resize

IteminstantiateWorkflow Method

Instantiates workflow for the item using specified workflow map.

Namespace:  Aras.IOM
Assembly:  IOM (in IOM.dll) Version: 14.0.20.39432
Syntax
public Item instantiateWorkflow(
	string workflowMapID
)

Parameters

workflowMapID
Type: SystemString
ID of a WorkflowMap.

Return Value

Type: Item
Returns a Workflow Process item created by this method or an "error" item.
Exceptions
ExceptionCondition
Exception
  • The instance doesn't represent a single item.
  • Either 'id' or 'typeId' is not set on the item.
  • The item is a new item not saved in the database yet.
ArgumentExceptionWorkflowMap ID is either 'null' or empty string.
Remarks
The method does the following: a) sends a request to the server to instantiate the specified Workflow Map to a Workflow Process b) using ID of the WorkflowProcess item obtained from the server, sends another request to attach the Workflow Process to the controlled item via the "Workflow" relationship. Note, that the item itself is not modified by the method.
See Also