Handler that allow retrieval of beans defined in the Spring container from within jBPM. The class implements the family of jBPM handler interfaces namely: ActionHandler, AssignmentHandler, DecisionHandler. The class can be used through jBPM delegation facilities, for example:
<action config-type="beanName" class="org.springframework.workflow.jbpm.SpringHandler"> <beanName>SpringJbpmAction</beanName> <factoryKey>myFactoryInstance<factoryName> </action>
where beanName represents a jBPM actionHandler defined inside Spring container using it's capabilities (IoC, AOP, etc). The optional factoryKey parameter is used to specify the key under which the bean factory can be found; if there is only one JbpmFactoryLocator inside the classloader, factoryKey can be skipped.
@author Costin Leau