[jboss-dev-forums] [jBPM Development] - Re: Unable to getTasksAssigned in JBPM5

Andy Yeung do-not-reply at jboss.com
Mon Nov 14 22:47:12 EST 2011


Andy Yeung [http://community.jboss.org/people/andy.yeung] created the discussion

"Re: Unable to getTasksAssigned in JBPM5"

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

--------------------------------------------------------------
By converting the query from

select
     new org.jbpm.task.query.TaskSummary(
     ...
     t.taskData.actualOwner,
     t.taskData.createdBy,
     t.taskData.createdOn,
     t.taskData.activationTime,
     t.taskData.expirationTime)
from
    Task t 
    left join t.taskData.createdBy 
    left join t.taskData.actualOwner
    left join t.subjects as subject
    left join t.descriptions as description
    left join t.names as name,
    OrganizationalEntity potentialOwners
where ...

to 

select
     new org.jbpm.task.query.TaskSummary(
     ...
    a,
    c,
     t.taskData.createdOn,
     t.taskData.activationTime,
     t.taskData.expirationTime)
from
    Task t 
    left join t.taskData.createdBy as c
    left join t.taskData.actualOwner as a
    left join t.subjects as subject
    left join t.descriptions as description
    left join t.names as name,
    OrganizationalEntity potentialOwners
where ...

Now I am able to get the correct query result. :)
--------------------------------------------------------------

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

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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20111114/3c22ed33/attachment.html 


More information about the jboss-dev-forums mailing list