getWFOwners
From LongJump Support Wiki
Identify current owners of a record in a workflow.
- Syntax
Functions.getWFOwners(String objectName, String recordId)
- where:
- objectName is an Object Type Identifier
- recordId is a record identifier
- Return
- RecordBean containing a list of IDs and names of record owners.
- Example
- This example lists current owner IDs and names for an EXPENSES record, depending on where it is in the workflow path.
Functions.debug("List workflow owners"); RecordBean rb = Functions.getWFOwners("EXPENSES", (String)requestParams.get("record_id")); List<RecordBean.WorkflowOwners.WFOwner> owners = rb.getAvailableWFOwners().getOwners(); if (owners != null) { for (int indx=0; indx<owners.size(); indx++) { RecordBean.WorkflowOwners.WFOwner owner = owners.get(indx); debug ("id: " + owner.getId() + "; name:" + owner.getFullName() ); } }