Creates a new Workflow Definition.
Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
Syntax
IWorkflowDefinition AddWorkflowDefinition( IWorkState startState, IUserGroup userGroup, string name )
Parameters
- startState
- Type: Ingeniux.CMSIWorkState
Starting state of the definition. This is the state to which the workflow automatically transitions from the "initial" state. There is an ITransition created from the "initial" state to this state. - userGroup
- Type: Ingeniux.CMSIUserGroup
The NextGroup of the initial transition - name
- Type: SystemString
Name of the workflow definition
Return Value
Type: IWorkflowDefinitionNewly created workflow definition instance.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | When "userGroup" is null or "name" is null, empty or whitespace. |
Remarks
Please note that the workflow definition instance returned is not yet stored in the content store.
See Also