Bug 1255869 - REST task query response is missing actual-owner tag after upgrading to Update2 in BPM Suite 6.1.2
Summary: REST task query response is missing actual-owner tag after upgrading to Updat...
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BPMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER4
: 6.2.0
Assignee: Shelly McGowan
QA Contact: Lukáš Petrovický
URL:
Whiteboard:
Depends On:
Blocks: 1258043
TreeView+ depends on / blocked
 
Reported: 2015-08-21 18:16 UTC by Amana
Modified: 2020-03-27 19:39 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
: 1258043 (view as bug list)
Environment:
Last Closed: 2020-03-27 19:39:26 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
task_query_output_with_update2 (1.57 KB, application/xml)
2015-08-21 18:16 UTC, Amana
no flags Details
task_query_output_without_update2 (1022 bytes, application/xml)
2015-08-21 18:17 UTC, Amana
no flags Details

Description Amana 2015-08-21 18:16:14 UTC
Description of problem:
After applying Update 2, the REST task query response is NOT returning actual-owner tag when a task is in InProgress or  Reserved status.

  /business-central/rest/task/query

Please see the attached task responses for each BPM Suite version


Version-Release number of selected component (if applicable):
6.1.2

How reproducible:
Always

Steps to Reproduce:
1. create a simple process with one HT (give an Actor name to the HT);
2. start the process and run the query;

  /business-central/rest/task/query

Actual results:
actual-owner tag is missing

Expected results:
actual-owner tag should be displayed

Additional info:

Comment 1 Amana 2015-08-21 18:16:50 UTC
Created attachment 1065677 [details]
task_query_output_with_update2

Comment 2 Amana 2015-08-21 18:17:06 UTC
Created attachment 1065678 [details]
task_query_output_without_update2

Comment 5 Marco Rietveld 2015-08-26 15:47:53 UTC
Fixed. Because of other changes, the problem does not occur on 6.3.x or master, but I've cherry-picked the commits there to be sure. 

Commits: 
6.2.x: https://github.com/droolsjbpm/droolsjbpm-integration/commit/a437acd6
6.3.x: https://github.com/droolsjbpm/droolsjbpm-integration/commit/6ec766eb
master: https://github.com/droolsjbpm/droolsjbpm-integration/commit/bd6b31ef

Comment 6 Marco Rietveld 2015-08-26 15:50:08 UTC
There are 2 workarounds available for this problem: 

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.

Comment 7 Amana 2015-08-27 12:35:15 UTC
Will it be fixed in Update 4?

Comment 8 Kris Verlaenen 2015-08-27 22:16:25 UTC
This shouldn't have been committed to 6.2.x yet, so we're going to revert that.  If this needs to be part of a patch update, please make sure it is requested using the normal procedure.  This BZ stays MODIFIED as the change will automatically be picked up for 6.2 product.

Comment 9 Marco Rietveld 2015-08-29 10:15:41 UTC
The 6.2.x commit has been reverted.

Comment 10 Tomas Livora 2015-10-29 10:00:03 UTC
Verified on BPMS 6.2.0 ER4


Note You need to log in before you can comment on or make changes to this bug.