[jboss-user] [jBPM] - Re: From Task to TaskSummary
Esteban Aliverti
do-not-reply at jboss.com
Mon Sep 10 06:38:31 EDT 2012
Esteban Aliverti [https://community.jboss.org/people/eaa] created the discussion
"Re: From Task to TaskSummary"
To view the discussion, visit: https://community.jboss.org/message/758781#758781
--------------------------------------------------------------
You have to do the conversoin manually or in the query (like jBPM does). This is the example of the 'TasksAssignedAsPotentialOwner' query:
select
*new org.jbpm.task.query.TaskSummary(*
* t.id,*
* t.taskData.processInstanceId,*
* name.text,*
* subject.text,*
* description.text,*
* t.taskData.status,*
* t.priority,*
* t.taskData.skipable,*
* actualOwner,*
* createdBy,*
* t.taskData.createdOn,*
* t.taskData.activationTime,*
* t.taskData.expirationTime,*
* t.taskData.processId,*
* t.taskData.processSessionId)*
from
Task t
left join t.taskData.createdBy as createdBy
left join t.taskData.actualOwner as actualOwner
left join t.subjects as subject
left join t.descriptions as description
left join t.names as name,
OrganizationalEntity potentialOwners
where ...
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/758781#758781]
Start a new discussion in jBPM at Community
[https://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/20120910/05a400cf/attachment.html
More information about the jboss-user
mailing list