BusinessWorks.startProcess()
Signature
long startProcess(String processName, Event input, String ruleFnURI, Object context)
Description
Starts a BusinessWorks process and executes asynchronously. Also initializes the process engine
if it has not been already initialized. Upon completion invokes the RuleFunction
to notify the return values. 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.
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 (Start Activity Input Type) BusinessWorks process. It can also be null |
ruleFnURI | String | closure - The closure object that you passed along with the startProcess. |
context | Object | as a parameter back to the rule function |
Returns
Type | Description |
long | A successful Job Id, which can be used for query status or cancellation of the Job |