REST task query response is missing "actual-owner" tag after applying Update 2 in BPM Suite 6.1.x

Solution Verified - Updated -

Environment

  • Red Hat JBoss BPM Suite (BPMS) 6.1.2
    • Red Hat JBoss BPM Suite 6.1 Update 2

Issue

After applying BPM Suite 6.1 Update 2, the REST task query response is NOT returning actual-owner tag when a task is in InProgress or Reserved status. This is the task query used and outputs:

  /business-central/rest/task/query
  • Task query output with Update 2 applied:
    <task-summary>
        <id>2</id>
        <name>ProcessorX</name>
        <subject>ProcessorX</subject>
        <description>processorAssignment</description>
        <status>Reserved</status>
        <priority>0</priority>
        <skipable>true</skipable>
        <created-on>2015-08-20T17:04:12.008-04:00</created-on>
        <activation-time>2015-08-20T17:04:12.008-04:00</activation-time>
        <process-instance-id>2</process-instance-id>
        <process-id>helloProcess</process-id>
        <process-session-id>2</process-session-id>
        <deployment-id>com.hello.workflow:hello:1.0</deployment-id>
        <quick-task-summary>false</quick-task-summary>
        <parent-id>-1</parent-id>
    </task-summary>
  • Task query output without Update 2 applied:
       <task-summary>
              <id>18</id>
              <name>Order</name>
              <subject></subject>
              <description>order</description>
              <status>Reserved</status>
              <priority>2</priority>
              <skipable>false</skipable>
              <actual-owner>anotherUser</actual-owner>
              <created-on>2015-08-21T10:56:25.719-05:00</created-on>
              <activation-time>2015-08-21T10:56:25.719-05:00</activation-time>
              <process-instance-id>23</process-instance-id>
              <process-id>helloOrder.helloOrder</process-id>
              <process-session-id>0</process-session-id>
              <deployment-id>com.hello:order-hello-bpm:1.0-SNAPSHOT
              </deployment-id>
              <quick-task-summary>false</quick-task-summary>
              <parent-id>-1</parent-id>
       </task-summary>

Resolution

The fix is included in Red Hat JBoss BPM Suite 6.1 Update 4, please apply that and test again.

For Update 2, there are two workarounds available:

  1. Use the GET http://<server>:<port>/business-central/rest/task/{taskId} to retrieve the full task information (as opposed to the task summary), which contains the actual owner information.

  2. Use the Remote Java API client (kie-remote-client) to retrieve the task, using the TaskService.getTaskById(long taskId).

For both workarounds, the user will need to first identify the task id of the task that the information is needed for, and then retrieve the whole task.

Root Cause

The BZ-1255869 handled this issue.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments