[This is preliminary documentation and is subject to change.]

Sets a workflow definition into the database.

Namespace:  OfficeClip.DBLayer.Framework
Assembly:  OfficeClip.DBLayer (in OfficeClip.DBLayer)
Version: 8.1.1.0

Syntax

C#
public int SetupWorkflowDefinition(
	int applicationId,
	WorkflowType wfType,
	ArrayList userListArr,
	ArrayList routingList,
	ArrayList notificationList,
	int currentGroupId
)
Visual Basic (Declaration)
Public Function SetupWorkflowDefinition ( _
	applicationId As Integer, _
	wfType As WorkflowType, _
	userListArr As ArrayList, _
	routingList As ArrayList, _
	notificationList As ArrayList, _
	currentGroupId As Integer _
) As Integer
Visual C++
public:
int SetupWorkflowDefinition(
	int applicationId, 
	WorkflowType wfType, 
	ArrayList^ userListArr, 
	ArrayList^ routingList, 
	ArrayList^ notificationList, 
	int currentGroupId
)

Parameters

applicationId
Type: System..::.Int32
Id of the application.
wfType
Type: OfficeClip.Utils..::.WorkflowType
Type of the workflow. WorkflowType
userListArr
Type: System.Collections..::.ArrayList
ArrayList of Ids of the users for whom the workflow has to be defined.
routingList
Type: System.Collections..::.ArrayList
ArrayList of the Ids of the users to whom the item should be routed to.
notificationList
Type: System.Collections..::.ArrayList
ArrayList of WorkflowInboxNotificationsInfo objects containing the notification rules information to be defined in a workflow.
currentGroupId
Type: System..::.Int32
Id of the current organization

Return Value

0 when successful, -1 in case of an error.

See Also