Name | Signature and Synopsis |
---|---|
cancelProcess | void cancelProcess(long jobId) Cancels a BusinessWorks process by this jobId |
getClosure | Object getClosure() Returns the closure specified in the startProcess |
init | void init() Initializes the Process Engine. Use of this function is not required. It is provided as a convenience to start BusinessWorks before the first process invocation. |
invokeProcess | SimpleEvent invokeProcess(String processName, Event input, long timeout) 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 and asserted should the invoked BusinessWorks process fails or times out. |
shutdown | void shutdown() Shuts down the Process Engine. |
startProcess | long startProcess(String processName, Event input, String ruleFnURI, Object context) 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. |