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 might 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 Community Console
bDoc
The business document being processed

Method

returnBusinessProcess

Method description

Returns a BusinessProcessInterface object to the factory. This method is called by the BPE. The factory resets BusinessProcess. For subsequent getBusinessProcess calls, the factory can cache instances of BusinessProcessInterface.

Syntax

public void returnBusinessProcess(BusinessProcessInterface bp)

Parameters

bp
The business process to be returned

Copyright IBM Corp. 2003, 2005