Retrieving a value
Retrieving a value
To retrieve a single value from the workflow rule
result
use
result.value
:
var result = Workflow.callMethod( 'AbSolutionsViewExamples-LogicExamples-createNewRecord'); this.newWorkOrderId = result.value; this.cookbookWorkOrderForm.refresh('wo.wo_id = ' + this.newWorkOrderId);
File: solutions/logic/ab-ex-logic-cookbook.js
In this example, the workflow rule returns an integer:
public int createNewRecord() {
...
return record.getInt("wo.wo_id");
}
File : src/main/com/archibus/eventhandler/viewexamples/LogicExampleHandlers.java