OScript API/Built-in Package Index |
WAPI ( Workflow Application Programming Interface) maintains a database of Maps, and Work along with providing functions to query the Work database in order to retrieve specified lists.
Maps define the Tasks and Links between the tasks. When a Map is Initiated Work is created. Map definitions may either be saved in the database or Initiated directly from the definition.
The Work database represents the current status of all Work in progress. The Work database refers to the Map database for all execution information.
The followings are types of WAPI object handles used with the WAPI functions:
An audit trail constant specifying that a sub-workflow finished.
An audit trail constant specifying that a sub-workflow started.
An audit trail constant specifying that a sub-workflow map definition was modified.
An audit trail constant specifying that a task assigned to a group was accepted by a member of the group.
An audit trail constant specifying that the task's send on \ processing has been completed in the background using the Workflow Agent.
An audit trail constant specifying that work on a task (in the base system, this includes any automatically processed step or Item Handler step) has been started in the background using the Workflow Agent.
An audit trail constant specifying that a task has been cancelled.
An audit trail constant specifying that work on a task had been completed and the task has been marked as done.
An audit trail constant that specifies that the task was executing.
An audit trail constant specifying that work on a task had been finished for the current work period, but the task has not marked as done.
An audit trail constant specifying that a task was marked as killed.
An audit trail constant specifying that a task has become ready.
An audit trail constant specifying that a task was reassigned to a different user.
An audit trail constant specifying that a suspended task was resumed.
An audit trail constant specifying that a task was resurrected.
An audit trail constant specifying that work on a task was started.
An audit trail constant specifying that a task was suspended.
An audit trail constant specifying that a custom event was added to the audit trail.
An audit trail constant specifying that the workflow was Archived.
An audit trail constant specifying that the workflow was completed.
An audit trail constant specifying that the suspended workflow was resumed.
An audit trail constant specifying that the workflow was started.
An audit trail constant specifying that the workflow was stopped.
An audit trail constant specifying that the workflow was suspended.
A constant to specify that the False links should be taken.
A constant specifying that only entries where the current user was the initiator should be returned.
A constant specifying that only entries where the current user is the manager should be returned.
A constant specifying that only entries where the current user is the task performer should be returned.
A constant specifying that the Loop links should be taken.
A constant specifying that the workflow should automatically be Archived upon completion.
A constant specifying that the workflow should automatically be Deleted upon completion.
A constant specifying that the e-mail sent by the workflow will contain their attachments as files included with the e-mail.
A constant specifying that the e-mail sent by the workflow will contain their attachments as HTML links back into Livelink.
A constant specifying that when this Map is used for a sub-workflow and the sub-workflow completes, the task that started the sub-workflow should be marked as done and the workflow route continued.
A constant specifying that the workflow should skip weekends when calculating due date.
A constant specifying that the Map should automatically be Deleted when the workflow is deleted.
A constant specifying that the False branches from a task should be taken.
A constant specifying that the task should automatically become Done as soon as it becomes ready.
A constant specifying that the task's send on processing should occur in the background (by the Workflow Agent as a separate process).
A constant specifying that the task's has been e-mail enabled.
A constant specifying that the task should be marked as a Milestone task and Milestone dates calculated and stored.
A constant specifying that the task should invoke the recalculate due date processing when the task has been sent on.
A constant specifying that the Loopback branch from a task should be taken.
A constant specifying that the True branches from a task should be taken.
A constant specifying that the WAPI.StartTask() call should not add an event to the audit trail.
A constant specifying that the WAPI.StartTask() call should mark the task as started even if it was already marked as started.
A constant specifying the CustomData for a subWork in an update call.
A constant specifying that the workflow should automatically be Archived upon completion.
A constant specifying that the workflow should automatically be Deleted upon completion.
A constant specifying that when this workflow is used for a sub-workflow and the sub-workflow completes, the task that started the sub-workflow should be marked as done and the workflow route continued.
A constant specifying that the workflow should skip weekends when calculating due dates.
A constant specifying that the Map definition that is used by this workflow should be Deleted when the workflow is deleted.
A constant specifying the Flags for a subWorkflow in an update call.
A constant specifying the Project for a subWorkflow in an update call.
A status constant specifying that the subwork has completed.
A status constant specifying that the subwork has not yet completed.
A constant specifying the Title for a subWorkflow in an update call.
A constant specifying the UserData for a subWorkflow in an update call.
A constant specifying the CustomData for a workflow task in an update call.
A constant specifying that the task should automatically complete when it becomes ready.
A constant specifying that the task should be performed in the background (by the Workflow Agent). The Item Handler step is the only step that supports this capability.
A constant specifying that the task's send on processing should occur in the background (by the Workflow Agent as a separate process). This is used to gain efficiencies and performance improvements especially if the steps proceeding this step are auto-done steps ( for example, Evaluate, Process, Subworkflow, Milestone, etc.).
A constant specifying that the task should be a Milestone task and store a Milestone due date.
A constant specifying that the task should invoke the recalculate due date processing when the task has been sent on.
A constant specifying the Flags for a workflow task in an update call.
A constant specifying the PerformerID for a task in a workflow for an update call.
A status constant specifying that the task was deleted.
A status constant specifying that the task is done.
A status constant specifying that the task is executing.
A status constant specifying that the task is finished.
A status constant specifying that the task was killed.
A status constant specifying that the task is ready.
A status constant specifying that the task is ready in the background (only supported with the Item Handler step).
A status constant specifying that the task's send on processing is being performed in the background by the Workflow Agent.
A status constant specifying that the task is started.
A status constant specifying that the task is suspended.
A status constant specifying that the task is waiting to become ready.
A constant specifying the Title for a task in a workflow for an update call.
A constant specifying that the task is a Milestone task.
A constant specifying that the task is a Normal task and not a Milestone task.
A constant specifying the UserComment for a task in a workflow for an update call.
A constant specifying the UserData for a task in a workflow for an update call.
A constant specifying the UserStatus for a task in a workflow for an update call.
A constant specifying that the True links should be taken.
A constant specifying the CustomData for a workflow in an update call.
A constant specifying the Flags for a workflow in an update call.
A constant specifying the ManagerID for a workflow in an update call.
A constant specifying the OwnerID for a workflow in an update call.
A constant specifying the Project for a workflow in an update call.
A status constant specifying that the workflow has been Archived.
A status constant specifying that the workflow has been Completed.
A status constant specifying that the workflow is still executing.
A status constant specifying that the workflow has been Stopped.
A status constant specifying that the workflow has been Suspended.
A constant specifying the Title for a workflow in an update call.
A constant specifying the UserData for a workflow in an update call.
Assigns a step, that was previously assigned to a group, to the currently logged in user.
Sets up a WAPIWORK object handle to provide access to the data package of a workflow.
Adds a link of the specified type between the specified tasks.
Creates and sets data stored in a data package.
Allocates a WAPIMAP object handle.
Allocates a WAPIMAPTASK object handle.
Allocate a WAPIMAPTASK object handle for a particular task in a workflow map definition.
Allocates a WAPISESSION object for a login user.
Allocates a WAPISUBWORK object for the specified WAPIWORK object.
Allocates a WAPIWORK object.
Sets the status of a Stopped or Completed workflow to Archived.
Initiates a Sub-Workflow using the information supplied in a previous call to WAPI.PrepareSubMap() or WAPI.PrepareSubWork().
Converts the values returned by a call to WAPI.WorkList() from Strings to their true values.
Deletes the Map from the Map database with the specified mapID.
Deletes the task from the map definition.
Deletes the link from the specified tasks.
Deletes the specified Stopped or Completed workflow.
Deletes data from the Data Package specified by type and subtype.
Frees the memory held by the WAPIMAP object.
Frees the memory held by the WAPIMAPTASK object.
Logs out the given WAPISESSION object and frees the associated memory.
Frees the memory held by the WAPISUBWORK object.
Frees the memory held by the WAPIWORK object.
Gets a List of the task ids for all links of the specified type for the specified task.
Gets the data specified by the given type and subtype stored in the data package.
Returns the data that was stored for the specified work.
Takes a map definition from Livelink OScript and converts it to a WAPIMAP definition.
Loads the map information from the Map database for the map with the specified ID.
Loads the task information for the specified workID, subWorkID, and taskID.
Loads the audit trail for the specified workID, subWorkID, and taskID.
Loads the information about a workflow.
Saves the map definition to the map database and sets up the work object for workflow initiation.
Saves the map definition to the map database and sets up the work object to initiate the map as a sub-workflow.
Sets up the work object to initiate the specified map as a subworkflow.
Sets up the work object to initiate the specified map as a workflow.
Reassigns the task specified by the workID, subWorkID, and taskID to the given userID.
Saves the modified map definition to the map database replacing the original.
Sets the status of a suspended workflow to Executing.
Saves a WAPIMAP map definition to the map database.
Specifies the WAPI callback routine and context argument that is passed to the callback.
Sets data stored in a data package.
Marks the specified task as started and sets up the given WAPIWORK object handle to be able to access the work package.
Initiates a workflow that was prepared with a call to WAPI.PrepareWork() and readies any initial tasks.
Sets the status of an Executing or Suspended workflow to Stopped.
Sets the status of an Executing workflow to Suspended.
Adds a row to the audit trail and stores the specified data.
Notifies the workflow engine that work on this task is completed for the time being but skip marking the task as Done and send the workflow on to the next step.
Marks the task as Done and takes the paths from the task that are of the specified link type.
Updates the value of a subWork attribute for a workflow.
Prepares the map and work object for a workflow already in process for update.
Updates the in-process workflow specified by work.
Updates the value of a task attribute for a workflow.
Updates the value of a work attribute.
Returns workflow information using the specified view, where clause, and flags.
Returns workflow information using the specified view, where clause, orderby clause, and flags.
An audit trail constant specifying that a sub-workflow finished.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a sub-workflow started.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a sub-workflow map definition was modified.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a task assigned to a group was accepted by a member of the group.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that the task's send on processing has been done in the background using the Workflow Agent.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that work on a task (in the base system this includes any auto done step or Item Handler step) has been started in the background using the Workflow Agent.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a task as been cancelled.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that work on a task had been completed and the task marked as done.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that the task was executing.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that work on a task had been finished for the current work period, but the task was not marked as done.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a task was marked as killed.
This indicates that the path containing the task was not taken as the result of an evaluation. The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a task became ready.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a task was reassigned to a different user.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a suspended task was resumed.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a task was resurrected.
This indicates that a loopback occurred and the path containing the task is once again available. The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that work on a task was started.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a task was suspended.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that a custom event was added to the audit trail.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that the workflow was archived.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that the workflow was completed.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that the suspended workflow was resumed.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that the workflow was started.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
An audit trail constant specifying that the workflow was stopped.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
This constant can be combined with other Map_Flag constants by Bitwise OR and used to set the Flag field for a Map to control workflow actions.
A constant specifying that the task should automatically become Done as soon as it becomes ready.
A constant specifying that the task's send on processing should occur in the background (by the Workflow Agent as a separate process). This is used to gain efficiencies and performance improvements especially if the steps proceeding this step are autodone steps ( for example, Evaluate, Process, Subworkflow, Milestone, etc.).
A constant specifying that the task has been e-mail enabled. When this task becomes ready, an e-mail will be sent to the Assignee(s) allowing the task to be completed through e-mail.
A constant specifying that the task should be marked as a Milestone task and Milestone dates should be calculated and stored.
A constant specifying that the task should invoke the recalculate due date processing when the task has been sent on.
A constant specifying that the False branches from a task should be taken. This constant should be used as the linkType for a call to WAPI.TaskDone().
A constant specifying that the Loopback branch from a task should be taken. This constant should be used as the linkType for a call to WAPI.TaskDone().
A constant specifying that the True branches from a task should be taken. This constant should be used as the linkType for a call to WAPI.TaskDone().
A constant specifying that the WAPI.StartTask() call should not add an event to the audit trail.
A constant specifying that the WAPI.StartTask() call should mark the task as started even if it was already marked as started.
A constant specifying the CustomData for a workflow task in an update call.
An audit trail constant specifying that the workflow was suspended.
A constant specifying that the False links should be taken.
This constant is used by the WAPI.TaskDone() function as the flag indicating which link types should be taken coming from the task.
A constant specifying that only entries where the current user was the initiator should be returned.
This constant is used as a bit-mask flag for the call WAPI.WorkList().
A constant specifying that only entries where the current user is the manager should be returned.
The constant is returned in the WorkAudit_Status column of the RecArray returned by a call to WAPI.LoadWorkAudit().
This constant is used as a bit-mask flag for the call WAPI.WorkList().
A constant specifying that only entries where the current user is the task performer should be returned.
This constant is used as a bit-mask flag for the call WAPI.WorkList(). This flag is used to determine the ToDo list for a user.
A constant specifying that the Loop links should be taken.
This constant is used by the WAPI.TaskDone() function as the flag indicating which link types should be taken coming from the task.
A constant specifying that the workflow should automatically be Archived upon completion.
This constant can be combined with the other Map_Flag constants by Bitwise OR and used to set the Flag field for a Map to control workflow actions.
A constant specifying that the workflow should automatically be Deleted upon completion.
This constant can be combined with other Map_Flag constants by Bitwise OR and used to set the Flag field for a Map to control workflow actions.
A constant specifying that the e-mail sent by the workflow will contain their attachments as files included with the e-mail.
This constant can be combined with other Map_Flag constants by Bitwise OR and used to set the Flag field for a Map to control workflow actions.
A constant specifying that the e-mail sent by the workflow will contain their attachments as HTML links back into Livelink.
This constant can be combined with other Map_Flag constants by Bitwise OR and used to set the Flag field for a Map to control workflow actions.
A constant specifying that when this Map is used for a sub-workflow and the sub-workflow completes, the task that started the sub-workflow should be marked as done and the workflow route continued.
This constant can be combined with other Map_Flag constants by Bitwise OR and used to set the Flag field for a Map to control workflow actions.
A constant specifying that the workflow should skip weekends when calculating due date.
This constant can be combined with other Map_Flag constants by Bitwise OR and used to set the Flag field for a Map to control workflow actions.
A constant specifying that the Map should automatically be Deleted when the workflow is deleted.
Use this constant with the call WAPI.UpdateTaskAttribute().
A constant specifying the Flags for a workflow task in an update call.
Use this constant with the call WAPI.UpdateTaskAttribute().
A constant specifying that the task should automatically complete when it becomes ready.
Use this constant with the call WAPI.UpdateTaskAttribute() when setting the task Flags with the WAPI.SUBWORKTASK_FLAGS constant.
A constant specifying that the task should be performed in the background (by the Workflow Agent). The Item Handler step is the only step that supports this capability.
Use this constant with the call WAPI.UpdateTaskAttribute() when setting the task Flags with the WAPI.SUBWORKTASK_FLAGS constant.
A constant specifying that the task's send on processing should occur in the background (by the Workflow Agent as a separate process). This is used to gain efficiencies and performance improvements especially if the steps proceeding this step are autodone steps ( for example, Evaluate, Process, Subworkflow, Milestone, etc.).
Use this constant with the call WAPI.UpdateTaskAttribute() when setting the task Flags with the WAPI.SUBWORKTASK_FLAGS constant.
A constant specifying that the task should be a Milestone task and store a Milestone due date.
Use this constant with the call WAPI.UpdateTaskAttribute() when setting the task Flags with the WAPI.SUBWORKTASK_FLAGS constant.
A constant specifying that the task should invoke the recalculate due date processing when the task has been sent on.
Use this constant with the call WAPI.UpdateTaskAttribute() when setting the task Flags with the WAPI.SUBWORKTASK_FLAGS constant.
Assigns a step that was previously assigned to a group to the currently logged in user.
This call changes the SubWorkTask_PerformerID column in the WSubWorkTask table to the ID of the currently logged in user.
The WAPIWORK object handle.
The workID for the desired workflow.
The subworkID for the desired sub-workflow.
The taskID for the desired step.
(Integer 0) if successful; Error otherwise.
Sets up a WAPIWORK object handle to provide access to the data package of a workflow.
The WAPIWORK object handle.
The workID for the desired workflow.
The optional subworkID for the desired sub-workflow.
(Integer 0) if successful; Error otherwise.
Adds a link, of the specified type, between the specified tasks.
The WAPIMAPTASK handle specifying the task the link should come from.
Specifies a constant indicating the link type, can be:
The WAPIMAPTASK handle specifying the task the link should go to.
(Integer 0) if successful; Error otherwise.
Creates and sets data stored in a data package.
The WAPIWORK object handle.
The data package type.
The data package subtype.
Optional description of the data.
The data value to store.
(Integer 0) if successful; Error otherwise.
Allocates a WAPIMAP object handle. This map handle is used to define workflow maps.
The WAPISESSION object handle.
The WAPIMAP object handle if successful; Error otherwise.
Allocates a WAPIMAPTASK object handle. This mapTask handle is used to define a task for a workflow map.
The WAPIMAP object handle for the desired workflow map.
The WAPIMAPTASK object handle if successful; Error otherwise.
Allocates a WAPIMAPTASK object handle for a particular task in a workflow map definition. This mapTask handle is used to define a task for a workflow map.
The WAPIMAP object handle for the desired workflow map.
The id for the desired workflow task.
The WAPIMAPTASK object handle if successful; Error otherwise.
Allocates a WAPISESSION object for a login user.
A WAPISESSION contains information pertaining to workflow management.
The CAPILOGIN object handle specifically for the login user.
The WAPISESSION object handle if successful; Error otherwise.
Allocates a WAPISUBWORK object for the specified WAPIWORK object.
The WAPIWORK object handle.
The WAPISUBWORK object handle if successful; Error otherwise.
Allocates a WAPIWORK object.
The WAPISESSION object handle.
The WAPIWORK object handle if successful; Error otherwise.
Sets the status of a Stopped or Completed workflow to Archived.
This changes the Work_Status field of the workflow to WAPI.WORK_STATUS_ARCHIVED.
Use a WAPIWORK object returned from a previous call to WAPI.AllocWork().
The WAPIWORK object handle.
The workID for the desired workflow.
(Integer 0) if successful; Error otherwise.
Initiates a Sub-Workflow using the information supplied in a previous call to WAPI.PrepareSubMap() or WAPI.PrepareSubWork().
The WAPIWORK object handle.
(Integer 0) if successful; Error otherwise.
Converts the values returned by a call to WAPI.WorkList() from Strings to their true values.
Some pieces of data are stored as Strings or BLOBs in the WAPI database. To improve performance these values are returned as Strings and not their original type. If the original type of the data is required this call is used to convert the data from a String back to the original type.
The WAPISESSION object handle.
The returned RecArray.
The name of the column whose values should be converted.
A RecArray with the values of the specified column name converted from a String to their original types.
Deletes the Map from the Map database with the specified mapID.
The WAPISESSION object handle.
The ID of the desired Map.
(Integer 0) if successful; Error otherwise.
Deletes the task from the map definition. This task was determined using WAPI.AllocMapTask() or WAPI.AllocNthMapTask().
The WAPIMAPTASK object handle.
(Integer 0) if successful; Error otherwise.
Deletes the link from the specified tasks.
The WAPIMAPTASK handle specifying the task the link comes from.
Specifies a constant indicating the link type, can be:
The WAPIMAPTASK handle specifying the task the link goes to.
(Integer 0) if successful; Error otherwise.
Deletes the specified Stopped or Completed workflow.
Use a WAPIWORK object returned from a previous call to WAPI.AllocWork().
The WAPIWORK object handle.
The workID for the desired workflow.
(Integer 0) if successful; Error otherwise.
Deletes data from the Data Package specified by the type and subtype.
Use a WAPIWORK object returned from a previous call to WAPI.AccessWork().
The WAPIWORK object handle.
The type of data in the Data Package.
The subtype of data in the Data Package.
(Integer 0) if successful; Error otherwise.
Frees the memory held by the WAPIMAP object.
The WAPIMAP object handle.
(Integer 0) if successful; Error otherwise.
Frees the memory held by the WAPIMAPTASK object.
The WAPIMAPTASK handle.
(Integer 0) if successful; Error otherwise.
Logs out the WAPISESSION object and frees any associated memory.
The WAPISESSION object handle.
(Integer 0) if successful; Error otherwise.
Frees the memory held by the WAPISUBWORK object.
The WAPISUBWORK object handle.
(Integer 0) if successful; Error otherwise.
Frees the memory held by the WAPIWORK object.
The WAPIWORK object handle.
(Integer 0) if successful; Error otherwise.
Gets a List of the task ids for all links of the specified types for the specified task.
The WAPIMAPTASK handle.
Specifies a constant indicating the link type, can be: * WAPI.MAPTASK_FALSELINKS * WAPI.MAPTASK_LOOPLINKS * WAPI.MAPTASK_TRUELINKS
A List of task ids if successful; Error otherwise.
Gets the data from the specified type and subtype stored in the data package.
The WAPIWORK object handle.
The type of data in the Data Package.
The subtype of data in the Data Package.
The data from the data package; Error otherwise.
Returns the data that was stored for the specified work.
The WAPIWORK object handle.
Optional parameter used to specify whether all the data, including any subworkflow data, should be returned. By default allWork is set to False.
A RecArray of work data if successful; error otherwise.
Takes a map definition from Livelink OScript and converts it to a WAPIMAP definition.
The WAPIMAP object handle.
A RecArray with only one row which describes various properties of the map.
A RecArray with one row for each task to add to the map definition.
A RecArray with one row for each link to add to the map definition.
(Integer 0) if successful; Error otherwise.
Loads the map information from the Map database for the map with the specified ID.
Allocate a WAPIMAP object then use this call to populate the WAPIMAP data.
The WAPIMAP object handle.
The ID for the desired map.
(Integer 0) if successful; Error otherwise.
Loads the task information for the specified workID, subWorkID, and taskID.
If only the workID is specified then the returned RecArray will contain 1 row for every task in every subWork for the work with the given workID. If the workID and subWorkID are specified then the RecArray will contain 1 row for every task in the subWork for the given workID and subWorkID. If the workID, subWorkID, and taskID are specified then only 1 row will be returned for the desired task.
The WAPISESSION object handle.
The workID for the desired workflow.
The optional subWorkID for the desired sub-workflow.
The optional taskID for the desired workflow task.
A RecArray of task information if successful; Error otherwise.
Loads the audit trail for the specified workID, subWorkID, and taskID.
If only the workID is specified then the returned RecArray will contain the audit information for every subWork and task for the work with the given workID. If the workID and subWorkID are specified then the RecArray will contain the audit information for the given workID and subWorkID. If the workID, subWorkID, and taskID are specified then only the audit information for the desired task will be returned.
The WAPISESSION object handle.
The workID for the desired workflow.
The optional subWorkID for the desired sub-workflow.
The optional taskID for the desired workflow task.
A RecArray of audit information if successful; Error otherwise.
Loads the information for a workflow. You can optionally limit the amount of data returned by specifying a subWorkID and a taskID. A List of 3 RecArrays is returned where the first RecArray contains information about the workflow as a whole, the second RecArray contains information about the sub-workflows, and the third RecArray contains information about the workflow tasks.
The WAPISESSION object handle.
The workID for the desired workflow.
The optional subWorkID for the desired sub-workflow.
The optional taskID for the desired workflow task.
A List of 3 RecArrays if successful; Error otherwise.
Saves the map definition to the map database and sets up the work object for workflow initiation.
The WAPIWORK object handle.
The WAPIMAP object handle for the desired map.
Optional flag values to control the map. The available values are:
(Integer 0) if successful; Error otherwise.
Saves the map definition to the map database and sets up the work object to initiate the map as a sub-workflow.
The WAPIWORK object handle.
The WAPIMAP object handle for the desired map.
Optional flag values to control the map. The available values are:
(Integer 0) if successful; Error otherwise.
Sets up the work object to initiate the specified map as a subworkflow.
The WAPIWORK object handle.
The ID of the desired Workflow Map.
Optional flag values to control the map. The available values are:
(Integer 0) if successful; Error otherwise.
Sets up the work object to initiate the specified map as a workflow.
The WAPIWORK object handle.
The ID of the desired Workflow Map.
Optional flag values to control the map. The available values are:
(Integer 0) if successful; Error otherwise.
Reassigns the task specified by the workID, subWorkID, and taskID to the given userID.
The WAPIWORK object handle.
The workID for the desired workflow.
The subWorkID for the desired workflow.
The taskID for the desired workflow task.
The ID of the user to which the task should be reassigned.
(Integer 0) if successful; Error otherwise.
Saves the modified map definition to the map database replacing the original.
The WAPIMAP object handle.
(Integer 0) if successful; Error otherwise.
Sets the status of a suspended workflow to Executing.
This changes the Work_Status field of the workflow to WAPI.WORK_STATUS_EXECUTING.
Use a WAPIWORK object returned from a previous call to WAPI.AllocWork().
The WAPIWORK object handle.
The workID for the desired workflow.
(Integer 0) if successful; Error otherwise.
Saves a WAPIMAP map definition to the map database.
The WAPIMAP object handle.
The ID for the new map if successful; Error otherwise.
Specifies the WAPI callback routine and context argument that is passed to the callback.
The WAPISESSION object handle.
The name of the script to execute.
The optional object that contains the script.
(Integer 0) if successful; Error otherwise.
Sets data stored in a data package.
The WAPIWORK object handle.
The type of the data.
The subtype of the data.
The optional description of the data.
The data to store.
(Integer 0) if successful; Error otherwise.
Marks the specified task as started and sets up the WAPIWORK object handle to be able to access the work package.
The WAPIWORK object handle.
The workID for the desired workflow.
The subWorkID for the desired workflow.
The taskID for the desired workflow task.
A flag for StartTask options. This flag can be combined by Bitwise OR using the following constants:
(Integer 0) if successful; Error otherwise.
Initiates a workflow that was prepared with a call to WAPI.PrepareWork() and readies any initial tasks.
The WAPIWORK object handle.
The optional title of the Workflow.
(Integer 0) if successful; Error otherwise.
Sets the status of an Executing or Suspended workflow to Stopped.
This changes the Work_Status field of the workflow to WAPI.WORK_STATUS_STOPPED.
The WAPIWORK object handle.
The workID for the desired workflow.
(Integer 0) if successful; Error otherwise.
Sets the status of an Executing workflow to Suspended.
This changes the Work_Status field of the workflow to WAPI.WORK_STATUS_SUSPENDED.
Use a WAPIWORK object returned from a previous call to WAPI.AllocWork().
The WAPIWORK object handle.
The workID for the desired workflow.
(Integer 0) if successful; Error otherwise.
Adds a row to the audit trail and stores the specified data. Even though the iterNum parameter is optional, if not specified the iternum will be accessed from the appropriate Workflow database table by using the workID, subworkID and taskID. If you already have the iterNum, it is more efficient to pass it in instead of having the function access it.
The WAPIWORK object handle.
The work ID of the Workflow
The subwork ID of the Workflow
The task ID of the task
The data to store.
The optional iteration number for this specific task
(Integer 0) if successful; Error otherwise.
Notifies the workflow engine that work on this task is completed for the time being but skip marking the task as Done and send the workflow on to the next step.
The WAPIWORK object handle.
(Integer 0) if successful; Error otherwise.
Marks the task as Done and takes the paths from the task that are of the specified link type. If the linkType is not specified, then the True/Normal paths will be taken.
The WAPIWORK object handle.
The optional type of link paths that should be taken from this step.
(Integer 0) if successful; Error otherwise.
Updates the value of a subWork attribute for a workflow.
The WAPIWORK object handle.
The workID for the desired workflow.
The subWorkID for the desired workflow.
Specifies a constant indicating the subWork attribute. Acceptable values are:
The new value for the attribute.
(Integer 0) if successful; Error otherwise.
Prepares the map and work object for a workflow already in-process for update. The new map definition is saved to the map database. The in-process workflow must be suspended in order for this call to succeed.
The WAPIWORK object handle.
The WAPIMAP object handle.
The workID for the desired workflow.
The subWorkID for the desired workflow.
(Integer 0) if successful; Error otherwise.
Updates the in-process workflow specified by work. This is used after a call to WAPI.UpdateSubWorkPrepare(). Here, the work information is updated, and the workflow is made to now point to the new map definition.
The WAPIWORK object handle.
(Integer 0) if successful; Error otherwise.
Updates the value of a task attribute for a workflow.
The WAPIWORK object handle.
The workID for the desired workflow.
The subWorkID for the desired workflow.
The taskID for the desired task.
Specifies a constant indicating the task attribute. Acceptable values are:
The new value for the attribute.
(Integer 0) if successful; Error otherwise.
Updates the value of a work attribute.
The WAPIWORK object handle.
The workID for the desired workflow.
Specifies a constant indicating the work attribute. Acceptable values are:
The new value for the attribute.
(Integer 0) if successful; Error otherwise.
Returns workflow information using the specified view, SQL "where" clause, and flags. If specific workflow information is required, a view can be constructed in the database schema, and this call can be used to select rows from that view.
The WAPISESSION object handle.
The view to do the select from
An SQL "where" clause if one is desired, 0 or Undefined if not.
Flag value for built-in "where" clauses. These flags can be combined by Bitwise OR using the following constants:
A RecArray of work information if successful; Error otherwise.
Returns ordered Workflow information using the specified view, SQL "where" clause, SQL "orderby" clause and flags. If specific Workflow information is required, a view can be constructed in the database schema, and this call can be used to select rows from that view.
The WAPISESSION object handle.
The view to do the select from
An SQL "where" clause if one is desired, 0 or Undefined if not.
An SQL "orderby" to order the results.
Flag value for built-in "where" clauses. These flags can be combined by Bitwise OR using the following constants:
A RecArray of work information if successful; Error otherwise.
Copyright © 2022 OpenText Corporation. All rights reserved. |