[jBPM] - jbpm 5.4 and simulation
by amadets
amadets [https://community.jboss.org/people/amadets] created the discussion
"jbpm 5.4 and simulation"
To view the discussion, visit: https://community.jboss.org/message/779324#779324
--------------------------------------------------------------
Hi,
I downloaded the latest version 5.4 officially shared.
I install using the ant install.demo.noeclipse. Everything is ok
next: ant start.demo.noeclipse and the whole starts and Everything is ok
I run google chrome and I type: localhost:8080/drools-guvnor
in default package create new "new BMPN Process".
I put on the process: Start -> Activities (Task) -> end
The properties tab for:
process - simulation -> Base Currency: USD
process - simulation -> Base time unit: minutes
Task -> Type: None
Task -> name: Task1
Task -> simulation -> Cost per time unit: 50
Task -> simulation -> Currency: USD
Task -> simulation -> Distribution Type: random
Task -> simulation -> Processing time (max): 10
Task -> simulation -> Processing time (min): 8
Task -> simulation -> Staff availabity: 2
Task -> simulation -> Time unit: minutes
Task -> simulation -> Working hours: 8
I click the validate process, message: There are not validation error
I click Run simulation:
Number of instance: 2
iterval: 2
Interval Units: minutes
and I click "Run simulation" get the message: Simulation engine did not return results.
I look to the jboss logs:
ERRORS:
Attribute 'type' must appear on element 'bpmn2:relationship'.
Cannot resolve 'drools:Scenario' to a type definition for element 'drools:Scenario'.
Cannot resolve 'drools:ScenarioParameters_._type' to a type definition for element 'drools:ScenarioParameters'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:ProcessingTime'.
Cannot resolve 'drools:CostParameters' to a type definition for element 'drools:CostParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:UnitCost'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:TimeParameters' to a type definition for element 'drools:TimeParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:WaitTime'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.
Cannot resolve 'drools:ElementParameters_._type' to a type definition for element 'drools:ElementParameters'.
Cannot resolve 'drools:ControlParameters' to a type definition for element 'drools:ControlParameters'.
Cannot resolve 'drools:Parameter' to a type definition for element 'drools:Probability'.
INFO:
Duration for activity 1 is avg: 554232.0; min: 554232.0; max:554232.0 count 1
Duration for end event is avg: 554232.0; min: 554232.0; max:554232.0
Duration for processs is avg: 554232.0; min: 554232.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]
Duration for activity 1 is avg: 546719.5; min: 539207.0; max:554232.0 count 2
Duration for end event is avg: 546719.5; min: 539207.0; max:554232.0
Duration for processs is avg: 546719.5; min: 539207.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]
SUMMARY Duration for end event is avg: 550475.75; min: 539207.0; max:554232.0 count 2.0
SUMMARY Duration for activity 1 is avg: 550475.75; min: 539207.0; max:554232.0 count 2.0
Duration for processs is avg: 550475.75; min: 539207.0; max:554232.0 [defaultPackage.Simul1@Simul1@null]
what's wrong?
ask for any tips.
ts
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779324#779324]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months
[jBPM] - jBPM Designer won't save when validation fails
by Herman Post
Herman Post [https://community.jboss.org/people/hbpost] created the discussion
"jBPM Designer won't save when validation fails"
To view the discussion, visit: https://community.jboss.org/message/779224#779224
--------------------------------------------------------------
I was using the 2.4-Final release of the jBPM Designer, doing high level design and saving my work periodically, and all of a suddent a message appears saying "Unable to perform user action due to errors. Validate your process before saving...". Then it locked up and I lost my work. Does a process need to pass validation to save? This seems unreasonable if I'm just trying to lay out high level design. Here is the stack trace I got when it locked up:
16:23:38,417 ERROR [org.jbpm.designer.web.profile.impl.JbpmProfileImpl] (http-localhost-127.0.0.1-8080-26) null: java.lang.NullPointerException
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallSequenceFlow(Bpmn2JsonMarshaller.java:2469) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallFlowElement(Bpmn2JsonMarshaller.java:868) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallProcess(Bpmn2JsonMarshaller.java:480) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshallDefinitions(Bpmn2JsonMarshaller.java:372) [classes:]
at org.jbpm.designer.bpmn2.impl.Bpmn2JsonMarshaller.marshall(Bpmn2JsonMarshaller.java:208) [classes:]
at org.jbpm.designer.web.profile.impl.JbpmProfileImpl$2.parseModel(JbpmProfileImpl.java:285) [classes:]
at org.jbpm.designer.web.server.UUIDBasedRepositoryServlet.doPost(UUIDBasedRepositoryServlet.java:148) [classes:]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:754) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at javax.servlet.http.HttpServlet.service(HttpServlet.java:847) [jboss-servlet-api_3.0_spec-1.0.0.Final.jar:1.0.0.Final]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:329) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.jbpm.designer.web.filter.impl.PluggableFilter.doFilter(PluggableFilter.java:70) [classes:]
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:280) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:248) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:275) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:161) [jbossweb-7.0.13.Final.jar:]
at org.jboss.as.web.security.SecurityContextAssociationValve.invoke(SecurityContextAssociationValve.java:153) [jboss-as-web-7.1.1.Final.jar:7.1.1.Final]
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:155) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) [jbossweb-7.0.13.Final.jar:]
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:877) [jbossweb-7.0.13.Final.jar:]
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:671) [jbossweb-7.0.13.Final.jar:]
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:930) [jbossweb-7.0.13.Final.jar:]
at java.lang.Thread.run(Thread.java:722) [rt.jar:1.7.0_09]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779224#779224]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months
[JBoss Cache] - Unable to connect to JGroups channel
by Bruno Lacerda
Bruno Lacerda [https://community.jboss.org/people/bsl.lacerda] created the discussion
"Unable to connect to JGroups channel"
To view the discussion, visit: https://community.jboss.org/message/765575#765575
--------------------------------------------------------------
Hi all!
I manage a cluster with two servers and four nodes. Each server has two instances of JBoss EAP 5.
Everything were goin on, but suddenly two nodes on the same server lost connection to JGroups and now they do not connect more.
I've already checked the MultiCast UDP with McastSenderTest and McastReceiverTest programs and MultiCast UDP works.
If I change the UDP address and port and start the problematic instances, JGroups works but with the UDP addres of the other server instances the problem back.
Thanks in advance!
Sorry for the english mistakes.
This is the stack trace of the exception.
[code]
2012-10-16 17:43:31,967 INFO [org.jgroups.JChannel] (main) JGroups version: 2.6.19.Final
2012-10-16 17:43:32,634 INFO [org.jboss.ha.framework.interfaces.HAPartition.A] (main) Initializing partition A
2012-10-16 17:43:32,875 INFO [org.jgroups.JChannel] (main) JGroups version: 2.6.19.Final
2012-10-16 17:43:32,947 INFO [org.jboss.ha.framework.interfaces.HAPartition.A] (JBoss System Threads(1)-3) Number of cluster members: 3
2012-10-16 17:43:32,951 INFO [org.jboss.ha.framework.interfaces.HAPartition.A] (JBoss System Threads(1)-3) Other members: 2
2012-10-16 17:44:33,244 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (main) Error installing to Start: name=HAPartition state=Create
org.jboss.cache.CacheException: java.lang.reflect.InvocationTargetException
at org.jboss.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:148)
at org.jboss.cache.factories.ComponentRegistry$PrioritizedMethod.invoke(ComponentRegistry.java:1012)
at org.jboss.cache.factories.ComponentRegistry.internalStart(ComponentRegistry.java:778)
at org.jboss.cache.factories.ComponentRegistry.start(ComponentRegistry.java:632)
at org.jboss.cache.invocation.CacheInvocationDelegate.start(CacheInvocationDelegate.java:345)
at org.jboss.ha.cachemanager.CacheManagerManagedCache.start(CacheManagerManagedCache.java:104)
at org.jboss.ha.framework.server.HAPartitionCacheHandlerImpl.startCache(HAPartitionCacheHandlerImpl.java:66)
at org.jboss.ha.framework.server.ClusterPartition.startService(ClusterPartition.java:397)
at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:376)
at org.jboss.system.ServiceMBeanSupport.pojoStart(ServiceMBeanSupport.java:216)
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.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:243)
at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:111)
at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:72)
at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:125)
at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:52)
at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55)
at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1454)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1172)
at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1193)
at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1113)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:826)
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:556)
at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:789)
at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:699)
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:403)
at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1652)
at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:938)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)
at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:988)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:778)
at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:543)
at org.jboss.system.server.profileservice.repository.AbstractProfileService.registerProfile(AbstractProfileService.java:308)
at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:256)
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.reflect.InvocationTargetException
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.cache.util.reflect.ReflectionUtil.invokeAccessibly(ReflectionUtil.java:144)
... 68 more
Caused by: org.jboss.cache.CacheException: Unable to connect to JGroups channel
at org.jboss.cache.RPCManagerImpl.start(RPCManagerImpl.java:378)
... 73 more
Caused by: org.jgroups.StateTransferException: 10.10.1.129:55300 could not fetch state null from null
at org.jgroups.JChannel.connect(JChannel.java:464)
at org.jboss.cache.RPCManagerImpl.start(RPCManagerImpl.java:371)
... 73 more
Caused by: org.jgroups.StateTransferException: 10.10.1.129:55300 could not fetch state null from null
at org.jgroups.JChannel.connect(JChannel.java:459)
... 74 more
[/code]
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/765575#765575]
Start a new discussion in JBoss Cache at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months
[jBPM] - jBPM BPMN2.0 eclipse creates xsi schema references that cannot be found
by Travers Snyman
Travers Snyman [https://community.jboss.org/people/tsnyman] created the discussion
"jBPM BPMN2.0 eclipse creates xsi schema references that cannot be found"
To view the discussion, visit: https://community.jboss.org/message/775761#775761
--------------------------------------------------------------
Hi
I am using the bpmn eclipse plugin (Indigo) to draft a business process. In the generated bpmn file, I see it generates the following xsi schema locations
<bpmn2:definitions
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance http://www.w3.org/2001/XMLSchema-instance"
xmlns:bpmn2=" http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/20100524/MODEL"
xmlns:bpmndi=" http://www.omg.org/spec/BPMN/20100524/DI http://www.omg.org/spec/BPMN/20100524/DI"
xmlns:dc=" http://www.omg.org/spec/DD/20100524/DC http://www.omg.org/spec/DD/20100524/DC"
xmlns:di=" http://www.omg.org/spec/DD/20100524/DI http://www.omg.org/spec/DD/20100524/DI"
xmlns:tns=" http://www.jboss.org/drools http://www.jboss.org/drools"
xsi:schemaLocation=" http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd
http://www.omg.org/spec/DD/20100524/DC http://www.omg.org/spec/DD/20100524/DC
http://www.omg.org/spec/DD/20100524/DC-XMI http://www.omg.org/spec/DD/20100524/DC-XMI
http://www.omg.org/spec/DD/20100524/DI http://www.omg.org/spec/DD/20100524/DI
http://www.omg.org/spec/DD/20100524/DI-XMI http://www.omg.org/spec/DD/20100524/DI-XMI
http://www.omg.org/spec/BPMN/20100524/DI http://www.omg.org/spec/BPMN/20100524/DI
http://www.omg.org/spec/BPMN/20100524/DI-XMI http://www.omg.org/spec/BPMN/20100524/DI-XMI" id="Definitions_1" targetNamespace=" http://www.jboss.org/drools http://www.jboss.org/drools">
The issue is that when we deploy and run (on tomcat), except for the " http://www.omg.org/spec/BPMN/20100524/MODEL http://www.omg.org/spec/BPMN/20100524/MODEL BPMN20.xsd schema documents could not be read - Errors as below:
(null: 439, 65): schema_reference.4: Failed to read schema document ' http://www.omg.org/spec/BPMN/20100524/DI-XMI http://www.omg.org/spec/BPMN/20100524/DI-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
(null: 440, 69): schema_reference.4: Failed to read schema document ' http://www.omg.org/spec/BPMN/20100524/DI-XMI http://www.omg.org/spec/BPMN/20100524/DI-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
(null: 441, 66): schema_reference.4: Failed to read schema document ' http://www.omg.org/spec/DD/20100524/DC-XMI http://www.omg.org/spec/DD/20100524/DC-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
(null: 443, 67): schema_reference.4: Failed to read schema document ' http://www.omg.org/spec/BPMN/20100524/DI-XMI http://www.omg.org/spec/BPMN/20100524/DI-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
(null: 444, 69): schema_reference.4: Failed to read schema document ' http://www.omg.org/spec/DD/20100524/DC-XMI http://www.omg.org/spec/DD/20100524/DC-XMI', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
If I remove the xsi:schema locations for the ones that cannot be found above manually in the bpmn file, it starts up fine. The problem is however everytime something is changed and saved on the diagram editor, the schema locations are put back into the file.
Does anyone know a way around this issue ?
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/775761#775761]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months
[jBPM] - ClassCastException in DynamicUtils when using JPAKnowledgeService.loadStatefulKnowledgeSession()
by Wooi Joe Chuah
Wooi Joe Chuah [https://community.jboss.org/people/joe.chuah] created the discussion
"ClassCastException in DynamicUtils when using JPAKnowledgeService.loadStatefulKnowledgeSession()"
To view the discussion, visit: https://community.jboss.org/message/779244#779244
--------------------------------------------------------------
Hi,
I've encountered the problem as stated above when using DynamicUtils to addDynamicSubProcess at the following line
ProcessEventSupport eventSupport = ((InternalProcessRuntime)((InternalKnowledgeRuntime)ksession).getProcessRuntime()).getProcessEventSupport();
The reason as far as I know is because the ksession returned from JPAKnowledgeService.loadStatefulKnowledgeSession() or newStatefulKnowledgeSession()
which is implemented using org.drools.persistence.jpa.KnowledgeStoreServiceImpl
returns the ksession as a CommandBasedStatefulKnowledgeSession object instance.
The CommandBasedStatefulKnowledgeSession does not implement InternalKnowledgeRuntime and hence we hit a class cast exception.
The same problem does not occur when using a ksession from the KnowledgeBuilder>KnowledgeBase>ksession.
Any idea if CommandBasedStatefulKnowledgeSession is going to implement InternalKnowledgeRuntime in the future or
there's gonna be a fix for using sessions which are loaded from DB? or is it a limitation
Thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/779244#779244]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 11 months