BusinessWorks.invokeProcess()
Signature
SimpleEvent invokeProcess(String processName, Event input, long timeout)
Description
Invokes a BusinessWorks process, executes synchronously and returns a SimpleEvent.
Also initializes the process engine if it has not been already initialized.
The BusinessWorks process that needs to be started should be a non-process starter
and must return an Event in XML - meaning the End Activity's input must be selected from the BusinessEvents
Event Schema. An AdvisoryEvent will be created or asserted should the invoked BusinessWorks process fails
or times out.
Parameters
Name | Type | Description |
processName | String | The BusinessWorks process name. The process must not be a process starter |
input | Event | The Event which is mapped one-to-one to the Input BusinessWorks process. It can also be null |
timeout | long | The amount of time in milliseconds to wait for the process to complete. 0 means indefinite. |
Returns
Type | Description |
SimpleEvent | A SimpleEvent as per the process definition's output transformed. If the output is a null, then it is null |