cancel
Showing results for 
Search instead for 
Did you mean: 

How to customize ActivityBehaviorFactory

skay
Champ in-the-making
Champ in-the-making
I would like to extend the DefaultActivityBehaviorFactory directly inside activiti.cfg.xml / processEngineConfiguration / bean declaration.
But how can I inject the expressionManager in my customized  ActivityBehaviorFactory / as this is initialized within the default ProcessEngineConfigurationImpl?

   if (activityBehaviorFactory == null) {
      DefaultActivityBehaviorFactory defaultActivityBehaviorFactory = new DefaultActivityBehaviorFactory();
      defaultActivityBehaviorFactory.setExpressionManager(expressionManager);
      activityBehaviorFactory = defaultActivityBehaviorFactory;
    }
3 REPLIES 3

jbarrez
Star Contributor
Star Contributor
Extend the ProcessEngineConfigurationImpl with your own processEngineConfiguration?

skay
Champ in-the-making
Champ in-the-making
OK see pull request #425

Custom ActivityBehaviorFactory without specializing ProcessEngineConfigurationImpl

jbarrez
Star Contributor
Star Contributor
Accepted!