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

Warning in "BAMTaskEventListener" if task is skipped from task event listener

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.43.0.Final
    • None
    • None
    • None

      Order of task listener does not match the what is set in the deployment descriptor

      Observing below warning if task is skipped from task vent listener.

      ~~~
      2020-07-17 05:33:28,898 WARN [org.jbpm.services.task.lifecycle.listeners.BAMTaskEventListener] (default task-60) Unable find bam task entry for task id 1 'task', skipping bam task update
      ~~~

      It looks like the issue only happens if skip tasks from the task event listeners.

      Case 1 -: When the task is skipped using java client then Warning doesn't appear
      ---------

      userTaskClient.skipTask(containerId, 1l, USER);

      Case 2 -: When the task is skipped using REST API then also Warning doesn't appear
      --------

      http://localhost:8080/kie-server/services/rest/server/containers/task-poc_1.0.3/tasks/1/states/skipped

      Case 3 -: But warning appears when the task is attempted using task service implementation on "afterTaskAddedEvent" although the task is getting skipped successfully.
      ---------

      taskService.skip(event.getTask().getId().longValue(), owner);

      Although the task is getting skipped, why is throwing Warning while skipping.

            elguardian@gmail.com Enrique González Martínez (Inactive)
            elguardian@gmail.com Enrique González Martínez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: