openWorkByHandle(workID, className)
Opens a work object associated with a work ID.
Returns
A Promise associated with the action.
Parameters
Name | Type | Description | Required |
workID | string | The work object to be opened. | ✅ |
className | string | The name of the case class associated with the work object. | ✅ |
Usage example
In this example, the success callback is called if the work object is opened successfully.
const openWorkPromise = getPConnect().getActionsApi().openWorkByHandle("OPB1HW-SPACETRA-WORK RA-10001", "OPB1HW-SpaceTra-Work-RequestApproval");
openWorkPromise.then(() => {
// open work by handle success handling
}).catch(() => {
// open work by handle failure handling
});
Previous topic openProcessAction(actionID, options) Next topic rejectCase(containerItemID)