Handlers for fixed inbound and fixed outbound workflow must implement this interface. It has the following three methods:
init
Initializes the handler by reading the configuration properties in the Config object.
public void init(Context context, Config config)
applies
Determines whether the handler can process the business document. If it can process it, the handler returns true; otherwise, it returns false.
public boolean applies(BusinessDocumentInterface bDoc)
process
This method is called only if the applies method returned true. In this method, the handler performs its respective processing.
public BusinessDocumentInterface process(BusinessDocumentInterface bDoc)