Interface ActivityBehaviorFactory

All Known Implementing Classes:
DefaultActivityBehaviorFactory, TestActivityBehaviorFactory

public interface ActivityBehaviorFactory
Factory class used by the BpmnParser and BpmnParse to instantiate the behaviour classes. For example when parsing an exclusive gateway, this factory will be requested to create a new ActivityBehavior that will be set on the element of that step of the process and will implement the spec-compliant behavior of the exclusive gateway. You can provide your own implementation of this class. This way, you can give different execution semantics to a standard bpmn xml construct. Eg. you could tweak the exclusive gateway to do something completely different if you would want that. Creating your own ActivityBehaviorFactory is only advisable if you want to change the default behavior of any BPMN default construct. And even then, think twice, because it won't be spec compliant bpmn anymore. Note that you can always express any custom step as a service task with a class delegation. The easiest and advisable way to implement your own ActivityBehaviorFactory is to extend the DefaultActivityBehaviorFactory class and override the method specific to the ActivityBehavior you want to change. An instance of this interface can be injected in the ProcessEngineConfigurationImpl and its subclasses.
Author:
Joram Barrez