[JBoss jBPM] - Extending jBPM 4 history service
by mpradny
Hello,
I'm evaluating jBPM for one project. We want to move process definitions from existing system to separate server running jBPM that could be potentially reused. I've to create possible integration scenario.
Current system is fully functional and the user frontend is working, but since we want to have more flexible process definitions, moving them to JBPM would help us a lot.
My idea was:
1. Current system would signal user activities to jBPM, e.g. activity completed (since this would be just a small change in code where we currently do this with local data, no big deal)
2. I need to get feedback from the jBPM about instance progress. I don't want to put this as automated activity or listener 1000 times in every process, so I was thinking about a general solution.
My idea is to create custom history service implementation that would do updates to current database. Then it could be completely process independent and process designers would not have to worry about this.
Has anyone tried this? So far I haven't found clean way how to add custom history service to jBPM via configuration. Ideally I would like just to plug my eg. CustomHistoryService to standard jBPM build to get it running.
Is this feasible? If you think that this can't be covered by jBPM use cases, let me know too.
Thanks,
Martin
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224282#4224282
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224282
16 years, 12 months
[JBoss jBPM] - Re: Is that possible to create a non-persisted ProcessInstan
by kenees
Hi Volker
Unfortunately, your hack doesn't work, I got a more serious exception:
| 17:41:04,598 ERROR [AssertionFailure] an assertion failure occured (this may indicate a bug in Hiber
| nate, but is more likely due to unsafe use of the session)
| org.hibernate.AssertionFailure: possible nonthreadsafe access to session
| at org.hibernate.action.EntityInsertAction.execute(EntityInsertAction.java:64)
| at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:279)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:263)
| at org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:167)
| at org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingE
| ventListener.java:298)
| at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:
| 27)
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224279#4224279
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224279
16 years, 12 months
[JBoss jBPM] - Is that possible to create a non-persisted ProcessInstance i
by kenees
The question is that I want to create a new ProcessInstance inside an outer ProcessInstance, actually this creation (new) operation is done in the ActionHandler of the outer ProcessInstance, the key is that the outer one is a persisted one, but I don't want the inner one to be persisted. So I got the following exception when I try to close the jbpmContext:
anonymous wrote : org.hibernate.TransientObjectException: object references an unsaved transient instance - save the t
| ransient instance before flushing: org.jbpm.graph.def.Node
| at org.hibernate.engine.ForeignKeys.getEntityIdentifierIfNotUnsaved(ForeignKeys.java:219)
| at org.hibernate.type.EntityType.getIdentifier(EntityType.java:397)
| at org.hibernate.type.ManyToOneType.isDirty(ManyToOneType.java:242)
| at org.hibernate.type.TypeFactory.findDirty(TypeFactory.java:597)
| at org.hibernate.persister.entity.AbstractEntityPersister.findDirty(AbstractEntityPersister.
| java:3128)
The code is as below:
The outer one:
| JbpmContext jbpmContext = JbpmConfingurationFactory.jbpmConfiguration
| .createJbpmContext();
| try {
| ...
| ProcessInstance processInstance = new ProcessInstance(retrievedPd);
| jbpmContext.save(processInstance);
| }
| } finally {
| jbpmContext.close(); //where I get the exception
| }
|
|
One ActionHandler of the outer one which expect to create a new ProcessInstance:
| public void execute(ExecutionContext executionContext) throws Exception {
| // get operation context from workflow
| OperationContext context = (OperationContext) executionContext
| .getContextInstance().getTransientVariable(
| Operation.OPERATION_CONTEXT);
| // create discovery operation
| WorkflowOperation discoveryOperation = new WorkflowOperation(context);
| // create discovery related workflow
| ProcessDefinition processDefinition = ProcessDefinition.parseXmlString(definition);
| ProcessInstance processInstance =
| new ProcessInstance(processDefinition);
| ....
|
Can anybody tell me why I got this error, is there any possible workaround?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224264#4224264
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224264
16 years, 12 months
[JBoss jBPM] - java.lang.NoClassDefFoundError: org/jboss/util/id/SerialVers
by GajananM
I am using jbpm-bpel-1.1.GA with JBOSS 4.2.0. i am getting the console. but whenever i am trying to build the sample application helloword through ant i am getting the error Build failed and i am also using JWSDP1.6.
is there any setting is missing in my setup?
Stacktrace:
2009-04-08 09:23:32,222 DEBUG [org.jbpm.bpel.xml.DeploymentDescriptorWriter] registered catalog writer: catalog=org.jbpm.bpel.integration.catalog.CentralCatalog, class=org.jbpm.bpel.xml.CentralCatalogWriter
2009-04-08 09:23:32,222 DEBUG [org.jbpm.bpel.tools.WsdlServiceTool] wrote deployment descriptor: bpel-deployment.xml
2009-04-08 09:23:32,237 DEBUG [org.jbpm.bpel.tools.WscompileTool] wrote configuration: wscompile25578.xml
2009-04-08 09:23:32,237 DEBUG [org.jbpm.bpel.tools.WscompileTool] using classpath: D:\jboss-4.2.0.GA\lib\jboss-jaxrpc.jar;D:\jboss-4.2.0.GA\server\default\lib\jboss-saaj.jar
2009-04-08 09:23:33,878 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpm-bpel].[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
java.lang.NoClassDefFoundError: org/jboss/util/id/SerialVersion
at javax.xml.rpc.JAXRPCException.(JAXRPCException.java:36)
at com.sun.xml.rpc.wsdl.framework.AbstractDocument.find(AbstractDocument.java:136)
at com.sun.xml.rpc.wsdl.document.WSDLDocument$GloballyValidatingAction.perform(WSDLDocument.java:151)
at com.sun.xml.rpc.wsdl.document.MessagePart.withAllEntityReferencesDo(MessagePart.java:80)
at com.sun.xml.rpc.wsdl.document.WSDLDocument$GloballyValidatingAction.perform(WSDLDocument.java:140)
at com.sun.xml.rpc.wsdl.document.Message.withAllSubEntitiesDo(Message.java:81)
at com.sun.xml.rpc.wsdl.document.WSDLDocument$GloballyValidatingAction.perform(WSDLDocument.java:141)
at com.sun.xml.rpc.wsdl.document.Definitions.withAllSubEntitiesDo(Definitions.java:149)
at com.sun.xml.rpc.wsdl.document.WSDLDocument$GloballyValidatingAction.perform(WSDLDocument.java:141)
at com.sun.xml.rpc.wsdl.framework.AbstractDocument.withAllSubEntitiesDo(AbstractDocument.java:86)
at com.sun.xml.rpc.wsdl.document.WSDLDocument.validate(WSDLDocument.java:116)
at com.sun.xml.rpc.processor.modeler.wsdl.WSDLModelerBase.buildModel(WSDLModelerBase.java:226)
at com.sun.xml.rpc.processor.config.ModelInfo.buildModel(ModelInfo.java:88)
at com.sun.xml.rpc.processor.Processor.runModeler(Processor.java:63)
at com.sun.xml.rpc.tools.wscompile.CompileTool.run(CompileTool.java:714)
at com.sun.xml.rpc.util.ToolBase.run(ToolBase.java:43)
at org.jbpm.bpel.tools.WscompileTool.callWscompile(WscompileTool.java:215)
at org.jbpm.bpel.tools.WscompileTool.generateJavaMappingImpl(WscompileTool.java:156)
at org.jbpm.bpel.tools.WscompileTool.generateJavaMapping(WscompileTool.java:143)
at org.jbpm.bpel.tools.WebModuleBuilder.callJavaMappingTool(WebModuleBuilder.java:264)
at org.jbpm.bpel.tools.WebModuleBuilder.buildModuleImpl(WebModuleBuilder.java:102)
at org.jbpm.bpel.tools.WebModuleBuilder.buildModule(WebModuleBuilder.java:84)
at org.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:205)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224219#4224219
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224219
17 years
[JBoss jBPM] - Sample Hello BPEL Process Deployement Exception
by mamidalasrinivas
When I Deploye Sample Hello BPEL Process ,I am geting below error
org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jbpm-bpel].[deploymentServlet]] Servlet.service() for servlet deploymentServlet threw exception
javax.servlet.ServletException: could not build web module for: BpelProcessDefinition(HelloWorld)
at org.jbpm.bpel.web.DeploymentServlet.deployWebModule(DeploymentServlet.java:208)
at org.jbpm.bpel.web.DeploymentServlet.doPost(DeploymentServlet.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
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:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Thread.java:595)
2009-04-07 17:09:07,926 INFO [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Trying to reconnect to JMS provider for CommandListenerBean
2009-04-07 17:09:07,926 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
2009-04-07 17:09:07,926 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: java:/DefaultJMSProvider
2009-04-07 17:09:07,926 DEBUG [org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.jboss.jms.jndi.JNDIProviderAdapter@1cfd7c
2009-04-07 17:09:07,926 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Creating DLQHandler
2009-04-07 17:09:07,926 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] Initialization failed DLQHandler
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224029#4224029
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224029
17 years