IteminstantiateWorkflow Method |
Instantiates workflow for the item using specified workflow map.
Namespace:
Aras.IOM
Assembly:
IOM (in IOM.dll) Version: 14.0.9.36244
Syntaxpublic Item instantiateWorkflow(
string workflowMapID
)
Public Function instantiateWorkflow (
workflowMapID As String
) As Item
public Item instantiateWorkflow(
String workflowMapID
)
public function instantiateWorkflow(
workflowMapID : String
) : Item
Parameters
- workflowMapID
- Type: SystemString
ID of a WorkflowMap.
Return Value
Type:
ItemReturns a Workflow Process item created by this method or an "error" item.
ExceptionsException | Condition |
---|
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.
|
ArgumentException | WorkflowMap 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