Methods / Methods for Process Instances |
Web Services
Creates a process instance for a specified process definition ID and parameters.
public virtual WFEvent CreateProcInst(string ProcessID, string ProcessInstID, string ProcInstName, string WorkObjID, string SuperProcInstID, bool blnStartImmediately)
Name | Description |
---|---|
ProcessID |
|
ProcessInstID |
|
ProcInstName |
|
WorkObjID |
|
SuperProcInstID |
|
blnStartImmediately |
|
WFEvent object that provides the status of the transaction. The possible statuses are:
IWFWorkflowService svc = GetWorkflowService(); string processDefinitionName = "EmployeeOnboardProcess"; // get UUID of released process definition string ProcessID = svc.GetReleasedPID(processDefinitionName); // assign UUID of process instance string ProcessInstID = UUID.GetID(); // process instance name that has to be unique within process definition ID string ProcInstName = string.Format("{0}-{1}", processDefinitionName DateTime.Now.Ticks ); // work object ID string WorkObjID = UUID.GetID(); // create process instance WFEvent event = svc.CreateProcInst(ProcessID, ProcessInstID, ProcInstName, WorkObjID, null, true);
3.2.0.4 and higher