Possible Bug: bpmn-parse-listener-on-user-task

From the examples, the bpmn-parse-listener-on-user-task plugin notifies the assignee from Task Listener configured in User Task.

InformAssigneeParseListener notifies the assignee in “create” event, that moment i hope task assignment couldn’t happen, rather it should be in “assignment” event.

public class InformAssigneeParseListener extends AbstractBpmnParseListener {
@Override
      public void parseUserTask(Element userTaskElement, ScopeImpl scope, ActivityImpl activity) {
        ActivityBehavior activityBehavior = activity.getActivityBehavior();
        if(activityBehavior instanceof UserTaskActivityBehavior ){
          UserTaskActivityBehavior userTaskActivityBehavior = (UserTaskActivityBehavior) activityBehavior;
          userTaskActivityBehavior
            .getTaskDefinition()
            .addTaskListener("create", InformAssigneeTaskListener.getInstance());
        }
      }
    }

Hi @aravindhrs,

thanks for pointing that out, it’s indeed a nice improvement for the example to inform the assignee on assignment event rather than on create.

You’ll see those changes in the repository by the end of this week when Camunda 7.12 will be released. :slight_smile:

Thanks and best regards,
Tobias

@tmetzke that’s awesome. Good work. :slight_smile: