ProcessWorkitemRequest Class

Use the ProcessWorkitemRequest class for processing an approval request after it is submitted.

Approval

You must specify the Approval namespace when creating an instance of this class. The constructor for this class takes no arguments. For example:

In addition to the methods listed, the ProcessWorkitemRequest class has access to all the methods in its parent class, ProcessRequest Class:

The following are methods for ProcessWorkitemRequest. All are instance methods.

  • getAction()

    Returns the type of action already associated with the approval request. Valid values are: Approve, Reject, or Removed.

  • getWorkitemId()

    Returns the ID of the approval request that is in the process of being approved, rejected, or removed.

  • setAction(actionType)

    Sets the type of action to take for processing an approval request.

  • setWorkitemId(id)

    Sets the ID of the approval request that is being approved, rejected, or removed.

Returns the type of action already associated with the approval request. Valid values are: Approve, Reject, or Removed.

public String getAction()

Type: String

Returns the ID of the approval request that is in the process of being approved, rejected, or removed.

public String getWorkitemId()

Type: String

Sets the type of action to take for processing an approval request.

public Void setAction(String actionType)

  • actionType: Type: String Valid values are: Approve, Reject, or Removed. Only system administrators can specify Removed.

Type: Void

Sets the ID of the approval request that is being approved, rejected, or removed.

public Void setWorkitemId(String id)

Type: Void