-
1. Re: Human task with multiple actor Id is not assigned to any actor, whats wrong?
swiderski.maciej Aug 15, 2012 12:41 AM (in response to thomas.setiabudi)When there are more than one actor as potential owner task will be in state ready and available to be claimed by any of the potential owners (actors assigned to it).
Check group tasks tab in console as they should appear there.
HTH
-
2. Re: Human task with multiple actor Id is not assigned to any actor, whats wrong?
thomas.setiabudi Aug 15, 2012 12:51 AM (in response to swiderski.maciej)Hi Maciej Swiderski,
I checked the group tab but still cannot find any task to claim.
I attached the designer screenshot, do I list the actors correctly there?
-
multiactor.PNG 102.3 KB
-
-
3. Re: Human task with multiple actor Id is not assigned to any actor, whats wrong?
swiderski.maciej Aug 15, 2012 12:55 AM (in response to thomas.setiabudi)yes, that is correct assignment. Anything in logs?
-
4. Re: Human task with multiple actor Id is not assigned to any actor, whats wrong?
thomas.setiabudi Aug 15, 2012 1:20 AM (in response to swiderski.maciej)cleared the server.log then try to refresh task on group tab, got these errors
11:31:21,738 ERROR [stderr] (Thread-16) java.lang.IllegalArgumentException: org.hibernate.QueryParameterException: could not locate named parameter [userId]
11:31:21,738 ERROR [stderr] (Thread-16) at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:206)
11:31:21,738 ERROR [stderr] (Thread-16) at org.jbpm.task.service.TaskServiceSession.getTasksAssignedAsPotentialOwnerByStatusByGroup(TaskServiceSession.java:1011)
11:31:21,738 ERROR [stderr] (Thread-16) at org.jbpm.task.service.TaskServerHandler.messageReceived(TaskServerHandler.java:356)
11:31:21,738 ERROR [stderr] (Thread-16) at org.jbpm.task.service.hornetq.HornetQTaskServerHandler.messageReceived(HornetQTaskServerHandler.java:44)
11:31:21,738 ERROR [stderr] (Thread-16) at org.jbpm.task.service.hornetq.BaseHornetQTaskServer.run(BaseHornetQTaskServer.java:85)
11:31:21,738 ERROR [stderr] (Thread-16) at java.lang.Thread.run(Thread.java:662)
11:31:21,738 ERROR [stderr] (Thread-16) Caused by: org.hibernate.QueryParameterException: could not locate named parameter [userId]
11:31:21,738 ERROR [stderr] (Thread-16) at org.hibernate.engine.query.ParameterMetadata.getNamedParameterDescriptor(ParameterMetadata.java:99)
11:31:21,738 ERROR [stderr] (Thread-16) at org.hibernate.engine.query.ParameterMetadata.getNamedParameterExpectedType(ParameterMetadata.java:105)
11:31:21,738 ERROR [stderr] (Thread-16) at org.hibernate.impl.AbstractQueryImpl.determineType(AbstractQueryImpl.java:437)
11:31:21,738 ERROR [stderr] (Thread-16) at org.hibernate.impl.AbstractQueryImpl.setParameter(AbstractQueryImpl.java:407)
11:31:21,738 ERROR [stderr] (Thread-16) at org.hibernate.ejb.QueryImpl.setParameter(QueryImpl.java:201)
11:31:21,738 ERROR [stderr] (Thread-16) ... 5 more
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) java.lang.RuntimeException: Timeout : unable to retrieve results
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jbpm.task.service.responsehandlers.BlockingTaskSummaryResponseHandler.getResults(BlockingTaskSummaryResponseHandler.java:41)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jbpm.task.service.SyncTaskServiceWrapper.getTasksAssignedAsPotentialOwnerByStatusByGroup(SyncTaskServiceWrapper.java:779)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jbpm.integration.console.TaskManagement.getUnassignedTasks(TaskManagement.java:163)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.bpm.console.server.TaskListFacade.getTasksForIdRefParticipation(TaskListFacade.java:113)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at java.lang.reflect.Method.invoke(Method.java:597)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:139)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:480)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.jboss.as.web.NamingValve.invoke(NamingValve.java:57)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:154)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:362)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:667)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
11:31:41,695 ERROR [stderr] (http-localhost-127.0.0.1-8080-11) at java.lang.Thread.run(Thread.java:662) -
5. Re: Human task with multiple actor Id is not assigned to any actor, whats wrong?
swiderski.maciej Aug 15, 2012 1:33 AM (in response to thomas.setiabudi)you ran into a bug (that was already fixed on master) and as workaround you could use taskorm.xml attached to following post: https://community.jboss.org/message/739277#739277
you need to put it inside jbpm-human-task.wat/WEB-INF/classes/META-INF to replace one that already exists there.
HTH
-
6. Re: Human task with multiple actor Id is not assigned to any actor, whats wrong?
thomas.setiabudi Aug 15, 2012 1:56 AM (in response to swiderski.maciej)Hi Maciej Swiderski,
Thanks the taskorm.xml works.
I took the war file from "\jboss-as-7.0.2.Final\standalone\deployments\jbpm-human-task-war.war"
extracted the war, and look into folder "\WEB-INF\classes\META-INF"
I have only persistence.xml inside that folder, so the taskorm.xml does not replace anything when I pasted the file there.
Now I can see the task in the group tab task list. Thank you for helping me
Regards,
Thomas Setiabudi
-
7. Re: Human task with multiple actor Id is not assigned to any actor, whats wrong?
swiderski.maciej Aug 15, 2012 2:07 AM (in response to thomas.setiabudi)great.
you're right taskorm.xml is bundled inside human-task-core jar file. Thanks a lot for sharing the steps.
Cheers