[jboss-user] [jBPM] - Re: Instantiating a process in JBPM5

Asad Rauf do-not-reply at jboss.com
Thu Sep 1 15:07:14 EDT 2011


Asad Rauf [http://community.jboss.org/people/imran.h] created the discussion

"Re: Instantiating a process in JBPM5"

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

--------------------------------------------------------------
I am able to run a process end to end. But I need to eventually persist it for longer running processes and also for persistent tasks. For that I still need to use the "org.jbpm.persistence.jpa" persistence which throws the above exception:

 Error in named query: SubTasksAssignedAsPotentialOwner
org.hibernate.hql.ast.QuerySyntaxException: Unable to locate class [org.drools.task.query.TaskSummary] [select new org.drools.task.query.TaskSummary( t.id, names.text, subjects.text, descriptions.text, t.taskData.status, t.priority, t.taskData.skipable, t.taskData.actualOwner, t.taskData.createdBy, t.taskData.createdOn, t.taskData.activationTime, t.taskData.expirationTime) from org.jbpm.task.Task t left join t.taskData.createdBy left join t.taskData.actualOwner, org.jbpm.task.I18NText names, org.jbpm.task.I18NText subjects, org.jbpm.task.I18NText descriptions, org.jbpm.task.OrganizationalEntity potentialOwners where t.taskData.parentId = :parentId and potentialOwners.id = :userId and potentialOwners in elements ( t.peopleAssignments.potentialOwners ) and names.language = :language and names in elements( t.names) and ( subjects.language = :language and subjects in elements( t.subjects) or t.subjects.size = 0 ) and ( descriptions.language = :language and descriptions in elements( t.descriptions) or t.descriptions.size = 0 ) and t.taskData.status in ('Created', 'Ready', 'Reserved', 'InProgress', 'Suspended') and t.taskData.expirationTime is null]
        at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:31)
        at org.hibernate.hql.ast.QuerySyntaxException.convert(QuerySyntaxException.java:24)
        at org.hibernate.hql.ast.ErrorCounter.throwQueryException(ErrorCounter.java:59)


This is talking about the drools TaskSummary class (org.drools.task.query.TaskSummary) and not the jbpm taskSummary class which, as you pointed out is in jbpm-human-task.jar
Please let me know if you need further info. Thanks.
--------------------------------------------------------------

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

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/20110901/af861e41/attachment.html 


More information about the jboss-user mailing list