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 might 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. This method is called by the BPE. The factory resets BusinessProcess. For subsequent getBusinessProcess calls, the factory can cache instances of BusinessProcessInterface.
public void returnBusinessProcess(BusinessProcessInterface bp)