[jboss-user] [jBPM] - Re: Accessing tasks via task variables in jbpm5

Demian Calcaprina do-not-reply at jboss.com
Mon Sep 12 19:10:18 EDT 2011

Demian Calcaprina [http://community.jboss.org/people/calca] created the discussion

"Re: Accessing tasks via task variables in jbpm5"

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

Hi Asad, just for curiosity.. why you would need to query tasks using variables? I don't know how you could make it, as task input and output seems to be serialized in Content table. You could query tasks by other criteria (from Task, TaskSummary, OrganizationalEntity) as it is done in orm.xml places in human tasks. You can just create an EntityManagerFactory like
entityManagerFactory = Persistence.createEntityManagerFactory("org.drools.task")
And then use the EntityManager to make queries.

About getting access to task variables, as said before, they are serialized content. You can check here to see how to get the variables:
 http://dcalca.wordpress.com/2011/05/06/variables-in-jbpm5-human-tasks/ http://dcalca.wordpress.com/2011/05/06/variables-in-jbpm5-human-tasks/
 http://dcalca.files.wordpress.com/2011/05/input.png http://dcalca.files.wordpress.com/2011/05/input.png



Reply to this message by going to Community

Start a new discussion in jBPM at Community

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

More information about the jboss-user mailing list