Click or drag to resize

IWorkflowManagerAddWorkflowDefinition Method


Creates a new Workflow Definition.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
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: IWorkflowDefinition
Newly created workflow definition instance.
Exceptions
ExceptionCondition
ArgumentNullExceptionWhen "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