Uploaded image for project: 'jBPM'
  1. jBPM
  2. JBPM-4355

Require nominate LifeCycle Event Support in JPATaskLifeCycleEventListener

    XMLWordPrintable

Details

    Description

      Currently the org.kie.api.task.TaskLifeCycleEventListener is missing the nominate task event callback and hence is not available in JPATaskLifeCycleEventListener also.
      https://github.com/droolsjbpm/droolsjbpm-knowledge/blob/master/kie-api/src/main/java/org/kie/api/task/TaskLifeCycleEventListener.java

      On digging more into the code I found here
      https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/main/java/org/jbpm/services/task/impl/TaskInstanceServiceImpl.java
      //@TODO: WHY THE HELL THIS IS NOT AN OPERATION???
      public void nominate(long taskId, String userId, List<OrganizationalEntity> potentialOwners) {
      if(lifeCycleManager instanceof UserGroupLifeCycleManagerDecorator)

      { ((MVELLifeCycleManager)((UserGroupLifeCycleManagerDecorator) lifeCycleManager).getManager()).nominate(taskId, userId, potentialOwners); }

      else if(lifeCycleManager instanceof MVELLifeCycleManager)

      { ((MVELLifeCycleManager)lifeCycleManager).nominate(taskId, userId, potentialOwners); }

      }

      Please treat nominate as an operation and add it to lifecycle events.

      Attachments

        Activity

          People

            swiderski.maciej Maciej Swiderski (Inactive)
            anindyas79 Anindya Saha (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: