BusinessWorks.invokeProcess(): Invokes an ActiveMatrix BusinessWorks process in synchronous mode and waits for completion of the process before returning to the rule or rule function. Starts the process engine if it is not already started. Returns an event, or null. Generates an advisory event if it times out.
BusinessWorks.startProcess(): Invokes an ActiveMatrix BusinessWorks process in asynchronous mode and returns the process ID (job ID). Upon completion, the ActiveMatrix BusinessWorks process passes an event to the rule function specified in an argument of
startProcess(). Starts the process engine if it is not already started.
BusinessWorks.cancelProcess(): Cancels the specified ActiveMatrix BusinessWorks process. Useful for canceling a long running job. (Cancellation is not guaranteed because the process may complete before receiving the cancellation command.)
BusinessWorks.init(): Used as needed to initialize the ActiveMatrix BusinessWorks engine.
BusinessWorks.shutdown(): Used as needed to stop the ActiveMatrix BusinessWorks engine.