[jboss-user] [jBPM] - Custom processes in jBPM 5.1 console
Michał Warecki
do-not-reply at jboss.com
Sun Aug 21 18:36:07 EDT 2011
Michał Warecki [http://community.jboss.org/people/michal.warecki] created the discussion
"Custom processes in jBPM 5.1 console"
To view the discussion, visit: http://community.jboss.org/message/622021#622021
--------------------------------------------------------------
Hi,
I discovered an issue while retrieving custom processes in jBPM 5.1 console.
I've configured persistence.xml and testDS1 for my already created processes in MySQL db. Also I set workDefinitions inside jbpm-gwt-console for custom WorkItem Handlers and set -Djbpm.console.directory to directory where my processes are placed. When I'm trying to read processes in jbpm console I've got exceptions:
> org.jboss.resteasy.spi.UnhandledException: java.lang.RuntimeException: Could not initialize stateful knowledge session: Could not find true
> org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:319)
> org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:230)
> org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:206)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:360)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
> *root cause*
> java.lang.RuntimeException: Could not initialize stateful knowledge session: Could not find true
> org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:185)
> org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)
> org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)
> org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
> org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
> org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
> org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
> org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
> org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
>
> *root cause*
>
> java.lang.IllegalArgumentException: Could not find true
> org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:111)
> org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:193)
> org.jbpm.integration.console.CommandDelegate.<init>(CommandDelegate.java:71)
> org.jbpm.integration.console.ProcessManagement.<init>(ProcessManagement.java:35)
> org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:22)
> org.jbpm.integration.console.ManagementFactory.createProcessManagement(ManagementFactory.java:19)
> org.jboss.bpm.console.server.ProcessMgmtFacade.getProcessManagement(ProcessMgmtFacade.java:98)
> org.jboss.bpm.console.server.ProcessMgmtFacade.getDefinitionsJSON(ProcessMgmtFacade.java:122)
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> java.lang.reflect.Method.invoke(Method.java:597)
> org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
> org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
> org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
> org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
> org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
> org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
> javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
> org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>
What is the reason of this exception? More interesting question: How can I set this custom work item definitions if there are deployed in other spring-based web application? Is it possible to just browse already created processes without execution? Execution of this processes will be left for my spring-based web app.
I want to use jBPM console for just browsing and check status (in graph viewer in case of processes) of processes and task.
Thanks in advance.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/622021#622021]
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/20110821/9b6f9fea/attachment-0001.html
More information about the jboss-user
mailing list