BusinessProcessHandlerInterface

Handlers for fixed inbound and fixed outbound workflow must implement this interface. It has the following three methods:

Method

init

Method description

Initializes the handler by reading the configuration properties in the Config object.

Syntax

public void init(Context context, 
                           Config config)

Parameters

context
The context associated with this flow
config
Configuration information set by the Community Console

Method

applies

Method description

Determines whether the handler can process the business document. If it can process it, the handler returns true; otherwise, it returns false.

Syntax

public boolean applies(BusinessDocumentInterface bDoc)

Parameters

bDoc
The business document being processed

Method

process

Method description

This method is called only if the applies method returned true. In this method, the handler performs its respective processing.

Syntax

public BusinessDocumentInterface process(BusinessDocumentInterface bDoc)

Parameters

bDoc
The business document being processed

Copyright IBM Corp. 2003, 2005