AnsweredAssumed Answered

How to customize  ActivityBehaviorFactory

Question asked by skay on Nov 3, 2014
Latest reply on Nov 6, 2014 by skay
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;
    }

Outcomes