getWorkflowActionList
From LongJump Support Wiki
Revision as of 22:31, 20 December 2010 by imported>Aeric (Text replace - 'getWorkflowActionList(' to 'Functions.getWorkflowActionList(')
Retrieves a list of Actions available for record, depending on it's Workflow State, via the Java API
- Syntax
Functions.getWorkflowActionList(String objectName,String recordId)
- where:
- objectName is the name or id of the object
- recordId is the id of the record
- Return
- Map
- Example
- This example returns workflow action list for object "Invoice". A map of actions for a record in the Invoice object is returned.
Functions.debug("Retrieve workflow action list"); String recordId = requestParams.get("record_id"); Map<String,WorkflowActionBean> wfCollection = Functions.getWorkflowActionList("Invoice", recordId); for(Map.Entry<String,WorkflowActionBean> e : wfCollection.entrySet()) { WorkflowActionBean wf = e.getValue(); Functions.debug("Action name : "+ wf.getName()); }