[jBPM] - Re: TaskClient not connecting
by npereira
npereira [http://community.jboss.org/people/npereira] created the discussion
"Re: TaskClient not connecting"
To view the discussion, visit: http://community.jboss.org/message/604402#604402
--------------------------------------------------------------
Hi bpmn2user,
Thanks for your reply, but unfortunatly I wasn't able to connect. I tried,
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
StatefulKnowledgeSession ksession = kbase.newStatefulKnowledgeSession();
CommandBasedWSHumanTaskHandler taskHandler = new CommandBasedWSHumanTaskHandler(ksession);
taskHandler.setConnection("10.1.5.148", 9123);
*taskHandler.connect();*
TaskClient client = new TaskClient(new MinaTaskClientConnector("client 1", new MinaTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
taskHandler.setClient(client);
if(client.connect())
System.out.println("OK");
else
System.out.println("NOT OK");
But on the highlighted line, I get the following error,
Exception in thread "main" java.lang.IllegalArgumentException: Could not connect task client
at org.jbpm.process.workitem.wsht.CommandBasedWSHumanTaskHandler.connect(CommandBasedWSHumanTaskHandler.java:88)
Does it make any sense to you? Is it something I'm missing in my code?
Regards,
Nelson
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604402#604402]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - Jpdl deployment internals in jbpm4.4
by Samrat Roy
Samrat Roy [http://community.jboss.org/people/whizkid.samrat] created the discussion
"Jpdl deployment internals in jbpm4.4"
To view the discussion, visit: http://community.jboss.org/message/604385#604385
--------------------------------------------------------------
Hi All,
I have a question regarding how the jpdls are deployed using repository service. I know the api methods; what I am trying to ask are the internals.
1. when I say .. repositoryService.createDeployment().addResourceFromClasspath(jpdl).addResourceFromClasspath(pngPath).deploy();
how does the api go about deploying it ? *are the jpdl / jpdl locations kept in the memory , or are they uploaded to the attached database* ? if they are uploaded to a database , I ask the table name and the column name of the table.
2. I ask this because I have noticed deploying a jpdl resource takes quite a bit of time , so idealy , I would like to deploy the jpdls only if the resource has changed , but if the jpdls are kept in the memory somewhere in a hashmap or so.. , this would mean I will have to deploy them after every server re-start.
I did check the java file written by tom bayens.. *org.jbpm.pvm.internal.repository.RepositoryCacheImpl* this suggests that the jpdls are kept in the memory ..
I need an insight .. please help..
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/604385#604385]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months
[jBPM] - jbpm 5.1
by new -user
new -user [http://community.jboss.org/people/new-user] created the discussion
"jbpm 5.1"
To view the discussion, visit: http://community.jboss.org/message/594170#594170
--------------------------------------------------------------
I downloaded the 5.1 version and imported a eclipse project which was created using 5.0.
I am getting following exception:
org.jboss.resteasy.spi.UnhandledException: java.lang.NoSuchMethodError: defaultPackage.Process_defaultPackage_0.action0(Lorg/drools/runtime/process/ProcessContext;Ljava/lang/String;Ljava/util/HashMap;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V
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:9**
What could be the reason please. This is working fine in 5.0
Thanks
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/594170#594170]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
14 years, 11 months