Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 21 ActiveMatrix BusinessWorks Integration : Integration Components

Integration Components
Integration components include a palette of activities in ActiveMatrix BusinessWorks, and a category of functions in TIBCO BusinessEvents.
ActiveMatrix BusinessWorks Activities Palette
RuleServiceProvider Configuration Resource
The RuleServiceProvider Configuration resource is used to identify the source of the ontology definitions (in an EAR file) and the location of the TIBCO BusinessEvents application at runtime.
Event Related Activities
The Receive Event, Send Event, And Wait for Event activities enable you to work more easily with TIBCO BusinessEvents events within ActiveMatrix BusinessWorks. The ontology definitions from the TIBCO BusinessEvents application are available to these activities so you can easily configure them. See the following sections:
Invoke RuleFunction Activity
An Invoke RuleFunction activity invokes a TIBCO BusinessEvents rule function in a specified agent instance and passes information to it. The Invoke RuleFunction activity can be combined with any process starter. Execution is synchronous.
TIBCO BusinessEvents Functions
TIBCO BusinessEvents provides a BusinessWorks category of functions, as follows:
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.

Copyright © TIBCO Software Inc. All Rights Reserved