[jboss-user] [jBPM] - Java code accessing task variables

npereira do-not-reply at jboss.com
Tue May 3 11:07:21 EDT 2011


npereira [http://community.jboss.org/people/npereira] created the discussion

"Java code accessing task variables"

To view the discussion, visit: http://community.jboss.org/message/603248#603248

--------------------------------------------------------------
Hi forum,

I'm having some trouble accessing the variables in my BPMN.

The problem is the following, I have a Human task, that has some "on entry actions".
In these on entry actions I generate a variable, named myVariable, that is local to the task.

Now my problem is when I'm on my Java code, accessing through TaskSummary:

          TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new           MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
            if(client.connect("127.0.0.1", 9123))
            {
                BlockingTaskSummaryResponseHandler taskSummaryResponseHandler = new BlockingTaskSummaryResponseHandler();
                client.getTasksAssignedAsPotentialOwner("krisv", "en-UK", taskSummaryResponseHandler);

                List<TaskSummary> tasks = taskSummaryResponseHandler.getResults();
                Iterator itr = tasks.iterator();
                while(itr.hasNext())
                {
                    TaskSummary t = (TaskSummary)itr.next();
                    System.out.println(t.getId());
                    ...
                }


How can I access these variables?
Is it possible and how?

Regards,
Nelson
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/603248#603248]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110503/1a68cc02/attachment.html 


More information about the jboss-user mailing list