Each variable workflow step must implement this factory interface. It has the following methods:
getBusinessProcess
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.
public BusinessProcessInterface getBusinessProcess( Context context, Config workflowConfig, BusinessDocumentInterface bDoc)
returnBusinessProcess
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.
public void returnBusinessProcess(BusinessProcessInterface bp)