Red Hat Bugzilla – Bug 1018173
I18NTextImpl doesn't update shortText when text is updated
Last modified: 2014-12-05 08:36:19 EST
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.
TaskSummary.getName() returns old task name.
TaskSummary.getName() returns updated task name.
Maciej Swiderski <email@example.com> updated the status of jira JBPM-4148 to Resolved
Maciej Swiderski <firstname.lastname@example.org> 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
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
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:
thank you for the explanation, it makes sense and after I used the transactions, it works, so I change the status to verified.