Description of problem: Platform BZ for https://issues.jboss.org/browse/JBPM-4148 Steps to Reproduce: 1. Get a Task with taskService.getTaskById() 2. Modify task name of the Task with InternalI18NText.setText() 3. Get a TaskSummary with taskService.getTasksAssignedAsPotentialOwner() Test case in https://github.com/droolsjbpm/jbpm/pull/181 would explain well. Actual results: TaskSummary.getName() returns old task name. Expected results: TaskSummary.getName() returns updated task name.
Maciej Swiderski <swiderski.maciej> updated the status of jira JBPM-4148 to Resolved
Maciej Swiderski <swiderski.maciej> made a comment on jira JBPM-4148 pull request has been merged already in master, thanks Toshiya
Maciej, has this been merged in master and 6.0.x?
yes, Toshiya's pull request was merged and back ported to 6.0.x jbpm master: https://github.com/droolsjbpm/jbpm/commit/4e106e9ab7724c13c7a7908c5d4d01f540b7dcd7 6.0.x: https://github.com/droolsjbpm/jbpm/commit/3ec9b8c0b41350c47eca436a08d2d6e979ad6d17 marking it as modified
I return this bug because the name of task will not change when I update it. Here is my test case http://pastebin.com/CYH5QRhu and I will attach the process definition.
Created attachment 844935 [details] the process definition with a single human task
Ivo, this is expected as you need to remember that to change entity and if you change it outside of the transaction changes won't be saved in db. Take a look here for both in transaction and outside of transaction tests for this case: https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-core/src/test/java/org/jbpm/services/task/TaskQueryServiceBaseTest.java#L934
Hi Maciej, thank you for the explanation, it makes sense and after I used the transactions, it works, so I change the status to verified.