How to get output parameters in the Async Task?

Solution Verified - Updated -


Async task is being used for Service Task Execution, during this execution it is desired to retrieve Data Input and Output parameters (Result parameters) that have been defined for the task.

Using following code:

public class EJBCommand implements Command {

    public ExecutionResults execute(CommandContext ctx) throws Exception {

    Map data=ctx.getData();
    WorkItem workitem = data.get("workitem");
    Map parameters = workitem.getParameters();
    Map result = workitem.getResults();

The result returned an empty map. How to get data output keys that have been defined previously?


  • Red Hat JBoss BPM Suite 6.0.x

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