Approve Work Item

By using the Approve Work Item activity, you can approve work items, and continue the paused executions.

General

The General tab contains the following fields.

Field Module Property? Description
Name No The name of the activity in the process definition.

The default value is ApproveWorkItem.

MDM Connection Yes The MDM connection resource establishes a connection to an MDM server, allowing the plug-in to communicate with TIBCO MDM.

Click to select an MDM connection.

If no matching MDM connections are found, click Create Shared Resource to create one.

Approve All Yes Select this check box to approve all the work items.
Note: The Maximum Count and Repository fields display only when the Approve All check box is selected. And when this check box is not selected, the WorkItemReference node is added in WorkItem in the Input tab.
MaxCount Yes The maximum number of work items that you want to approve. The default value is 20.
Repository Yes Specify the repositories related to the work items that you want to approve. Click to open the Repository dialog. All available repositories are listed in the list of the dialog. Select one to apply to your current activity. The default value All means selecting all the available repositories.

Description

Provide a short description for the activity.

Advanced

The Advanced tab has the following fields.

Field Module Property? Description
Specify Custom Attributes No Select this check box to specify custom attributes for work items, that is, user-defined attributes.
Note: When this check box is selected, the CustomAttributes node appears in WorkItem in the Input tab.

Input

The following is the input for the activity.

Note: See General Input for MDM Activities for details about some general input items for this activity.
Input Item Description
WorkItemReference Specify the workitem ID that you want to approve.
Note: The WorkItemReference node appears only when the Approve All check box is not selected in the General tab.
ReasonCode Provide a reason code for the work item approval operation.
Comment Provide a comment for work item approval operation.
CustomAttributes Specify custom attributes for work items, that is, user-defined attributes. You can specify the value of the Name and Value.
Note: The CustomAttributes node appears only when the Specify Custom Attributes check box is selected in the Advanced tab.

Output

The following is the output for the activity.

Output Item Description
Result The execution result to indicate whether the execution has succeeded or not.
The node contains the following three elements:
  • Severity: Can be Error, Warning, or Info.
  • Code: The error code.
  • Description: A readable description of the error.
Transaction
Response
  • WorkItem: Return a list of work item information. For each work item, WorkItemReference, EventReference, Organization, State, StateDescription, CreationDate, WorkItemType, Description, DocumentType, DocumentTypeDescription, DocumentSubtype, DocumentSubtypeDescription, Owner, OwnerName, OwnerType, OriginalOwner, OriginalOwnerName, OriginalWorkItemID, TaskType, ActivityName, Age, and Records related information including MasterCatalogName, ProductID, ProductIDExt, MODVersion are returned.
  • MasterCatalogName: The name of the repository containing records.
  • MODVersion: The modification version of the record.
  • ResultList: Contains errors, warnings or informational messages. The element has one or more entries. HighestSeverity returns the highest severity of the process, it can be Error, Warning, or Info.

See for more information on other items.

TransactionResult Return the result of a transaction to indicate if the command has succeeded or not.

Success does not mean the successful completion of the command. However, a failure does mean that the command is aborted.

The element also captures details such as Result, and SuccessCount.

  • SuccessCount: Indicates the number of work items that are successfully processed.