BusinessWorks

Description

Functions for BusinessWorks integration

Functions

NameSignature and Synopsis
cancelProcessvoid cancelProcess(long jobId)
Cancels a BusinessWorks process by this jobId
getClosureObject getClosure()
Returns the closure specified in the startProcess
initvoid 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.
invokeProcessSimpleEvent 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.
shutdownvoid shutdown()
Shuts down the Process Engine.
startProcesslong 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.