Cannot find a Task which was created in the same transaction in JBoss BPM Suite

Solution Unverified - Updated -

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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content