BusinessWorks.invokeProcess()

Signature

SimpleEvent invokeProcess(String processName, Event input, long timeout)

Domain

action

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

NameTypeDescription
processNameStringThe BusinessWorks process name. The process must not be a process starter
inputEventThe Event which is mapped one-to-one to the Input BusinessWorks process. It can also be null
timeoutlongThe amount of time in milliseconds to wait for the process to complete. 0 means indefinite.

Returns

TypeDescription
SimpleEventA SimpleEvent as per the process definition's output transformed. If the output is a null, then it is null

Cautions

none

See Also

startProcess