BusinessProcessFactoryInterface

Each variable workflow step must implement this factory interface. It has the following methods:

Method

getBusinessProcess

Method description

Gets an instance of BusinessProcessInterface. The factory class constructs the BusinessProcess instance by calling the appropriate constructor, based on the configuration information that is passed in. The factory may cache BusinessProcess objects, which this method returns the from the cache.

Syntax

public BusinessProcessInterface getBusinessProcess(
                                     Context context,
                                     Config workflowConfig,
                                     BusinessDocumentInterface bDoc)

Parameters

context
The context associated with this flow
workflowConfig
Configuration details as specified in the console
bDoc
The business document being processed

Method

returnBusinessProcess

Method description

Returns a BusinessProcessInterface object to the factory. The method is called by BPE. The factory should reset the BusinessProcess. For subsequent getBusinessProcess calls, the factory may cache instances of BusinessProcessInterface.

Syntax

public void returnBusinessProcess(BusinessProcessInterface bp)

Parameters

bp
The business process to be returned

Copyright IBM Corp. 2003, 2005