[jBPM] - org.drools.RuntimeDroolsException: invalid package name
by stellina_rosa
stellina_rosa [http://community.jboss.org/people/stellina_rosa] created the discussion
"org.drools.RuntimeDroolsException: invalid package name"
To view the discussion, visit: http://community.jboss.org/message/609900#609900
--------------------------------------------------------------
Hi!
in my process there is a rule-task that set some process variable... for example, this is one rule:
rule "no result"
ruleflow-group "rules"
when
$process: WorkflowProcessInstance()
$c: CostFlight(cost == "0")
then
System.out.println("Nosolution avaible!");
$process.setVariable("result","no_result");
end
and at this point I haven't any problem. If I use a diverging gateway ( XOR) with 2 possible way, I must write 2 constraint like this:
(to node NO_RESULT)
org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();
return "no_result".equals(process.getVariable("result"));
(to node RESULT)
org.drools.runtime.process.WorkflowProcessInstance process = (org.drools.runtime.process.WorkflowProcessInstance)kcontext.getProcessInstance();
return "ok".equals(process.getVariable("result"));
but when I try to launch it, I have this ERROR:
org.drools.RuntimeDroolsException: invalid package name
at org.jbpm.compiler.ProcessBuilderImpl.buildProcess(ProcessBuilderImpl.java:175)
at org.jbpm.compiler.ProcessBuilderImpl.addProcessFromXml(ProcessBuilderImpl.java:254)
at org.drools.compiler.PackageBuilder.addProcessFromXml(PackageBuilder.java:430)
at org.drools.compiler.PackageBuilder.addKnowledgeResource(PackageBuilder.java:470)
at org.drools.builder.impl.KnowledgeBuilderImpl.add(KnowledgeBuilderImpl.java:28)
at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:65)
at com.sample.ProcessTest.main(ProcessTest.java:35)
[5,58]: [ERR 102] Line 5:58 mismatched input 'process' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-11-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[5,119]: [ERR 102] Line 5:119 mismatched input ')' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-11-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[5,120]: [ERR 102] Line 5:120 mismatched input 'kcontext' expecting ')' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-11-DROOLS_DEFAULT"
[6,7]: [ERR 101] Line 6:7 no viable alternative at input 'return' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-11-DROOLS_DEFAULT"
[6,53]: [ERR 101] Line 6:53 no viable alternative at input '"risultato"' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-11-DROOLS_DEFAULT" in pattern equals
[13,58]: [ERR 102] Line 13:58 mismatched input 'process' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-12-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[13,119]: [ERR 102] Line 13:119 mismatched input ')' expecting '(' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-12-DROOLS_DEFAULT" in pattern org.drools.runtime.process.WorkflowProcessInstance
[13,120]: [ERR 102] Line 13:120 mismatched input 'kcontext' expecting ')' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-12-DROOLS_DEFAULT"
[14,7]: [ERR 101] Line 14:7 no viable alternative at input 'return' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-12-DROOLS_DEFAULT"
[14,46]: [ERR 101] Line 14:46 no viable alternative at input '"risultato"' in rule "RuleFlow-Split-com.sample.bpmn.hello-13-12-DROOLS_DEFAULT" in pattern equals
org.drools.compiler.ProcessLoadError: unable to parse xml : Exception class org.drools.RuntimeDroolsException : invalid package name
java.lang.IllegalArgumentException: Could not parse knowledge.
at org.drools.builder.impl.KnowledgeBuilderImpl.newKnowledgeBase(KnowledgeBuilderImpl.java:58)
at com.sample.ProcessTest.readKnowledgeBase(ProcessTest.java:67)
at com.sample.ProcessTest.main(ProcessTest.java:35)
could anyone help me?I can't understand where is the problem!
thank you very much
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609900#609900]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[jBPM] - jbpm5:Failed to set process variables
by jack pan
jack pan [http://community.jboss.org/people/timerule] created the discussion
"jbpm5:Failed to set process variables"
To view the discussion, visit: http://community.jboss.org/message/609896#609896
--------------------------------------------------------------
Customize rest method in gwt-console-server.war:
Throws the following error:
Any idea anyone?
Thanks
2011-06-13 20:17:35,468 INFO [STDOUT] (http-0.0.0.0-8080-4) Hibernate: select processins0_.InstanceId as InstanceId54_0_, processins0_.lastModificationDate as lastModi2_54_0_, processins0_.lastReadDate as lastRead3_54_0_, processins0_.processId as processId54_0_, processins0_.processInstanceByteArray as processI5_54_0_, processins0_.startDate as startDate54_0_, processins0_.state as state54_0_, processins0_.OPTLOCK as OPTLOCK54_0_ from ProcessInstanceInfo processins0_ where processins0_.InstanceId=?
2011-06-13 20:17:35,484 INFO [STDOUT] (http-0.0.0.0-8080-4) Hibernate: update ProcessInstanceInfo set lastModificationDate=?, lastReadDate=?, processId=?, processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where InstanceId=? and OPTLOCK=?
2011-06-13 20:17:35,500 INFO [STDOUT] (http-0.0.0.0-8080-4) 20:17:35,484 ERROR [SynchronousDispatcher] failed to execute
javax.ws.rs.WebApplicationException: java.lang.NullPointerException
at org.jboss.bpm.console.server.CustomFacade.addInstanceData(CustomFacade.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:67)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getContextInstance(ProcessInstanceImpl.java:127)
at org.jbpm.integration.console.CommandDelegate.setProcessInstanceVariables(CommandDelegate.java:270)
at org.jbpm.integration.console.ProcessManagement.setInstanceData(ProcessManagement.java:96)
at org.jboss.bpm.console.server.CustomFacade.addInstanceData(CustomFacade.java:88)
... 38 more
@PUT
@Path("instance/{id}/addInstanceData")
@Consumes("multipart/form-data")
public Response addInstanceData(
@PathParam("id")
String instanceId,
Map<String, String> processVars){
try {
Map<String,Object> params = new HashMap<String, Object>();
params.put("testkey", "testValue");
getProcessManagement().setInstanceData(instanceId, params);
return Response.ok().build();
} catch (Throwable t) {
throw new WebApplicationException(t, 500);
}
}
private ProcessManagement getProcessManagement() {
if (null == this.processManagement) {
ManagementFactory factory = ManagementFactory.newInstance();
this.processManagement = factory.createProcessManagement();
log.debug("Using ManagementFactory impl:"
+ factory.getClass().getName());
}
return this.processManagement;
}
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609896#609896]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[jBPM] - jbpm5:Failed to set process variables
by jack pan
jack pan [http://community.jboss.org/people/timerule] created the document:
"jbpm5:Failed to set process variables"
To view the document, visit: http://community.jboss.org/docs/DOC-16912
--------------------------------------------------------------
Customize rest method in gwt-console-server.war:
@PUT
@Path("instance/{id}/addInstanceData")
@Consumes("multipart/form-data")
public Response addInstanceData(
@PathParam("id")
String instanceId,
Map<String, String> processVars){
try {
Map<String,Object> params = new HashMap<String, Object>();
params.put("testkey", "testValue");
getProcessManagement().setInstanceData(instanceId, params);
return Response.ok().build();
} catch (Throwable t) {
throw new WebApplicationException(t, 500);
}
}
private ProcessManagement getProcessManagement() {
if (null == this.processManagement) {
ManagementFactory factory = ManagementFactory.newInstance();
this.processManagement = factory.createProcessManagement();
log.debug("Using ManagementFactory impl:"
+ factory.getClass().getName());
}
return this.processManagement;
}
Throws the following error:
2011-06-13 20:17:35,468 INFO [STDOUT] (http-0.0.0.0-8080-4) Hibernate: select processins0_.InstanceId as InstanceId54_0_, processins0_.lastModificationDate as lastModi2_54_0_, processins0_.lastReadDate as lastRead3_54_0_, processins0_.processId as processId54_0_, processins0_.processInstanceByteArray as processI5_54_0_, processins0_.startDate as startDate54_0_, processins0_.state as state54_0_, processins0_.OPTLOCK as OPTLOCK54_0_ from ProcessInstanceInfo processins0_ where processins0_.InstanceId=?
2011-06-13 20:17:35,484 INFO [STDOUT] (http-0.0.0.0-8080-4) Hibernate: update ProcessInstanceInfo set lastModificationDate=?, lastReadDate=?, processId=?, processInstanceByteArray=?, startDate=?, state=?, OPTLOCK=? where InstanceId=? and OPTLOCK=?
2011-06-13 20:17:35,500 INFO [STDOUT] (http-0.0.0.0-8080-4) 20:17:35,484 ERROR [SynchronousDispatcher] failed to execute
javax.ws.rs.WebApplicationException: java.lang.NullPointerException
at org.jboss.bpm.console.server.CustomFacade.addInstanceData(CustomFacade.java:92)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:117)
at org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:260)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232)
at org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166)
at org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(DispatcherUtilities.java:142)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:356)
at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:173)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:93)
at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:235)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:190)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:92)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)
at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:330)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:829)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:598)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.NullPointerException
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getProcess(ProcessInstanceImpl.java:67)
at org.jbpm.process.instance.impl.ProcessInstanceImpl.getContextInstance(ProcessInstanceImpl.java:127)
at org.jbpm.integration.console.CommandDelegate.setProcessInstanceVariables(CommandDelegate.java:270)
at org.jbpm.integration.console.ProcessManagement.setInstanceData(ProcessManagement.java:96)
at org.jboss.bpm.console.server.CustomFacade.addInstanceData(CustomFacade.java:88)
... 38 more
Any idea anyone?
Thanks
--------------------------------------------------------------
Comment by going to Community
[http://community.jboss.org/docs/DOC-16912]
Create a new document in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=102&co...]
13 years, 5 months
[EJB3] - IllegalArgumentException: message destination name (/key) is null
by Alexander Hartner
Alexander Hartner [http://community.jboss.org/people/ejb3workshop] created the discussion
"IllegalArgumentException: message destination name (/key) is null"
To view the discussion, visit: http://community.jboss.org/message/609872#609872
--------------------------------------------------------------
During the deployment of an EAR I am getting the following exception. The same ear deploys fine in Jboss 4.2.3 however since upgrading to 5.1 the application no longer deploys correctly. I check the deployment descriptors (ejb-jar.xml and jboss.xml) but can't make any sense of this error messages.
> org.jboss.deployers.spi.DeploymentException: Error deploying abc.jar: message destination name (/key) is null
> at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:196)
> at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:99)
> at org.jboss.deployers.vfs.spi.deployer.AbstractVFSRealDeployer.internalDeploy(AbstractVFSRealDeployer.java:45)
> at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
> at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
> at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
> at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)
> at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)
> at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)
> at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)
> at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)
> at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
> at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)
> at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
> at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
> at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
> at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
> at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
> at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
> at org.jboss.Main.boot(Main.java:221)
> at org.jboss.Main$1.run(Main.java:556)
> at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.IllegalArgumentException: message destination name (/key) is null
> at org.jboss.metadata.javaee.support.AbstractMappedMetaData.get(AbstractMappedMetaData.java:109)
> at org.jboss.metadata.ejb.jboss.JBossAssemblyDescriptorMetaData.getMessageDestination(JBossAssemblyDescriptorMetaData.java:382)
> at org.jboss.ejb3.Ejb3DescriptorHandler.addMessageDestinationAnnotations(Ejb3DescriptorHandler.java:1897)
> at org.jboss.ejb3.Ejb3DescriptorHandler.addEjbAnnotations(Ejb3DescriptorHandler.java:1377)
> at org.jboss.ejb3.Ejb3DescriptorHandler.addDescriptorAnnotations(Ejb3DescriptorHandler.java:922)
> at org.jboss.ejb3.Ejb3DescriptorHandler.addDescriptorAnnotations(Ejb3DescriptorHandler.java:899)
> at org.jboss.ejb3.Ejb3DescriptorHandler.getStatelessContainer(Ejb3DescriptorHandler.java:514)
> at org.jboss.ejb3.Ejb3AnnotationHandler.getContainers(Ejb3AnnotationHandler.java:203)
> at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:718)
> at org.jboss.ejb3.Ejb3Deployment.deployElement(Ejb3Deployment.java:669)
> at org.jboss.ejb3.Ejb3Deployment.deployUrl(Ejb3Deployment.java:651)
> at org.jboss.ejb3.Ejb3Deployment.deploy(Ejb3Deployment.java:614)
> at org.jboss.ejb3.Ejb3Deployment.create(Ejb3Deployment.java:491)
> at org.jboss.ejb3.deployers.Ejb3Deployer.deploy(Ejb3Deployer.java:182)
> ... 34 more
>
Any suggestion to what this error refers and how I can it around it.
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/609872#609872]
Start a new discussion in EJB3 at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months
[jBPM] - A question on the external event using event Correlation
by byungwoojun
byungwoojun [http://community.jboss.org/people/byungwoojun] created the discussion
"A question on the external event using event Correlation"
To view the discussion, visit: http://community.jboss.org/message/592470#592470
--------------------------------------------------------------
I have a use case which needs to handle multiple intermeidate message events from external partners (applications) in a process. Let's say each external partner sends the JMS message (or Web Services, which does not matter in this case) toward the process. To handle this, I can put multiple event nodes and set up the event type for each event node in the process. And, I can make a JMS listener (e.g., MDB) that translates incoming JMS messages into event data object. Since the external partners have no idea about the knowledge session nor process instance (not supposed to), the JMS message does NOT have those data fields. But, using some JMS fields (content-based mapping), I may be able to map them to a particular event type.
Here is my question. Now, I need to find a paritcular "running" knowledge session and/or process instance based on the incoming JMS message. There could be multiple running session and process instances. How do I get/know a particular session / process instance id to send a signalEvent? I went through jBPM 5 sample test code came with jBPM 5, but they didn't explain this use case. The jBPM 5 user document says, "it is also possible to have the engine *automatically* determine which process instances might be interested in an event using event correlation, which is based on the event type." What if there are multiple running instances waiting for the same event type?
Any suggestion or sample code will be appreciated.
bwj
--------------------------------------------------------------
Reply to this message by going to Community
[http://community.jboss.org/message/592470#592470]
Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&cont...]
13 years, 5 months