AnsweredAssumed Answered

AbstractBpmnParseHandler in version 6 Beta

Question asked by schommerc on Sep 16, 2015
Latest reply on Sep 21, 2015 by schommerc
New to Activiti and was tasked with upgrading from 5.18 to 6.0.  After pulling in the new jars, I noticed that AbstractBpmnParseHandler.findActivity(BpmnParse, UserTask) method no longer exists in the Abstract class.  Without really understanding the codebase, I've been trying to find a way to reimplement the following code:

@Override
    protected void executeParse(BpmnParse bpmnParse, UserTask element)
    {
        ActivityImpl activity = findActivity(element.getId()); // This method is the problem
        ActivityBehavior behavior = activity.getActivityBehavior();
        if (behavior instanceof UserTaskActivityBehavior)
        {
            addListeners((UserTaskActivityBehavior) behavior);
        }
        else if(behavior instanceof MultiInstanceActivityBehavior)
        {
            MultiInstanceActivityBehavior multiInstance = (MultiInstanceActivityBehavior) behavior;
            behavior = multiInstance.getInnerActivityBehavior();
            if(behavior instanceof UserTaskActivityBehavior)
            {
                addListeners((UserTaskActivityBehavior) behavior);
            }
        }
    }

Thanks in advance for any help on this!

-Chad

Outcomes