Cannot find a Task which was created in the same transaction in JBoss BPM Suite
Issue
- When an application tries to create/find/cancel/reassign a Task in one transaction, he created Task cannot be found inside the transaction. It was possible in jBPM 3.
tx.begin();
ksession.startProcess("com.sample.bpmn.hello", null); // [Start]->[HT]->[End]
TaskService taskService = runtime.getTaskService();
{
List<TaskSummary> list = taskService.getTasksAssignedAsPotentialOwner("john", "en-UK");
for (TaskSummary taskSummary : list) {
System.out.println("john has a task : taskId = " + taskSummary.getId());
}
}
tx.commit();
Environment
- Red Hat JBoss BPM Suite
- 6.0.3
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
