How to get output parameters in the Async Task?

Solution Verified - Updated -

Issue

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?

Environment

  • Red Hat JBoss BPM Suite 6.0.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In