[jBPM] - java.io.EOFException while upgrading to jBPM 5.2
by Melih Cetin
Melih Cetin [https://community.jboss.org/people/mscetin] created the discussion
"java.io.EOFException while upgrading to jBPM 5.2"
To view the discussion, visit: https://community.jboss.org/message/648165#648165
--------------------------------------------------------------
We are in the process of upgrading to jBPM 5.2 (from 5.1). As I could not find any explicit notice about the upgrade process in 5.2 documentation, I assumed version 5.2 is backwards compatible with version 5.1.
Apperantly, there are some incompatibilities. We got java.io.EOFException error while unmarshalling the existing jBPM 5.1 process timers (see the stack dump below).
Caused by: java.io.EOFException
at java.io.DataInputStream.readShort(DataInputStream.java:315)
at java.io.ObjectInputStream$BlockDataInputStream.readShort(ObjectInputStream.java:2769)
at java.io.ObjectInputStream.readShort(ObjectInputStream.java:946)
at org.jbpm.marshalling.impl.ProcessMarshallerImpl.readProcessTimers(ProcessMarshallerImpl.java:204)
at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:310)
at org.drools.marshalling.impl.InputMarshaller.readSession(InputMarshaller.java:196)
at org.drools.marshalling.impl.DefaultMarshaller.unmarshall(DefaultMarshaller.java:93)
at org.drools.persistence.SessionMarshallingHelper.loadSnapshot(SessionMarshallingHelper.java:91)
... 67 more
When I compare 5.1 and 5.2 versions of org.jbpm.marshalling.impl.ProcessMarshallerImpl class, among other changes I see that implementation of readProcessTimers and writeProcessTimers are different. Is there any script or utility available to upgrade existing 5.1 timers (and/or any other process instance data) to 5.2 format?
P.S. IMHO, persisting session or process instance data in binary format has to be re-evaluated as it creates lots of difficulties while investigating operational issues. If it was done for flexibility then a human readable format (e.g. json or xml) would be a better choice.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/648165#648165]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - Problem Bitronix Transaction, Spring, Jbpm5.2
by Ricardo Chiriboga
Ricardo Chiriboga [https://community.jboss.org/people/rachirib] created the discussion
"Problem Bitronix Transaction, Spring, Jbpm5.2"
To view the discussion, visit: https://community.jboss.org/message/649520#649520
--------------------------------------------------------------
Hi,
Anyone can help me? i have a structure in JBPM 5.2 with Spring, i have to use LocalTaskService to do one global transaction, but when i create a process sometimes throws this exception and sometimes dont.
javax.persistence.PersistenceException: java.lang.NullPointerException
at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:516)
at bitronix.tm.BitronixTransaction.fireBeforeCompletionEvent(BitronixTransaction.java:478)
at bitronix.tm.BitronixTransaction.commit(BitronixTransaction.java:193)
at bitronix.tm.BitronixTransactionManager.commit(BitronixTransactionManager.java:120)
at org.springframework.transaction.jta.JtaTransactionManager.doCommit(JtaTransactionManager.java:1009)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.processCommit(AbstractPlatformTransactionManager.java:754)
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:723)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:374)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:120)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
at $Proxy43.iniciarProceso(Unknown Source)
at co.edu.javerianacali.stp.bpm.facade.impl.JbpmFacadeImpl.iniciarProceso(JbpmFacadeImpl.java:59)
at co.edu.javerianacali.stp.bpm.JbpmIntegrationTest.crearProceso(JbpmIntegrationTest.java:41)
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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)
at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)
at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)
at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:74)
at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:82)
at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:72)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)
at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)
at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)
at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)
at org.junit.runners.ParentRunner.run(ParentRunner.java:236)
at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)
at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: java.lang.NullPointerException
at org.drools.marshalling.impl.OutputMarshaller.writeLeftTuple(OutputMarshaller.java:711)
at org.drools.marshalling.impl.OutputMarshaller.writeLeftTuples(OutputMarshaller.java:557)
at org.drools.marshalling.impl.OutputMarshaller.writeFactHandles(OutputMarshaller.java:361)
at org.drools.marshalling.impl.OutputMarshaller.writeSession(OutputMarshaller.java:143)
at org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:143)
at org.drools.marshalling.impl.DefaultMarshaller.marshall(DefaultMarshaller.java:126)
at org.drools.persistence.SessionMarshallingHelper.getSnapshot(SessionMarshallingHelper.java:72)
at org.drools.persistence.info.SessionInfo.update(SessionInfo.java:84)
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.hibernate.ejb.event.BeanCallback.invoke(BeanCallback.java:23)
at org.hibernate.ejb.event.EntityCallbackHandler.callback(EntityCallbackHandler.java:80)
at org.hibernate.ejb.event.EntityCallbackHandler.preUpdate(EntityCallbackHandler.java:65)
at org.hibernate.ejb.event.EJB3FlushEntityEventListener.invokeInterceptor(EJB3FlushEntityEventListener.java:41)
at org.hibernate.event.def.DefaultFlushEntityEventListener.handleInterception(DefaultFlushEntityEventListener.java:330)
at org.hibernate.event.def.DefaultFlushEntityEventListener.scheduleUpdate(DefaultFlushEntityEventListener.java:270)
at org.hibernate.event.def.DefaultFlushEntityEventListener.onFlushEntity(DefaultFlushEntityEventListener.java:151)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEntities(AbstractFlushingEventListener.java:219)
at org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:99)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:49)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1028)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:366)
at org.hibernate.ejb.AbstractEntityManagerImpl$1.beforeCompletion(AbstractEntityManagerImpl.java:504)
... 41 more
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649520#649520]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - User Task Group Assignment
by Charlie B
Charlie B [https://community.jboss.org/people/charliebarjel] created the discussion
"User Task Group Assignment"
To view the discussion, visit: https://community.jboss.org/message/649337#649337
--------------------------------------------------------------
I have a set of Uer Tasks in my workflow.
Now with each task, only a specific GROUP of users should be able to execute and complete that task.
Before assigning a task to a user, I need to determine if they are part of the authorized group.
How can I achieve this in JBPM5?
How can I determine which Group(s) is authorised to claim and complete a User Task?
I am currently using the ActorId attribute to store the username of user who the task will be assigned to? Can I use this in conjuction with the GroupId attribute to specify that any user that this task is assigned to MUST be part of this Group? Is that how that attribute is used?
Also, is there a way to retrieve the GroupId through API to dynamically render user lists when a task needs to be assigned to a user from the authorised group?
Charlie B
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649337#649337]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - Using jbpm-human-task-war.war instead of DemoTaskService.class
by Junaid Mohammed
Junaid Mohammed [https://community.jboss.org/people/junaidmohammed] created the discussion
"Using jbpm-human-task-war.war instead of DemoTaskService.class"
To view the discussion, visit: https://community.jboss.org/message/649518#649518
--------------------------------------------------------------
Hi,
The JBPM Human Task Service WAR is not actually bundled with the 5.2 full installer.
Nonetheless, I managed to somehow find and grab it from http://repo1.maven.org/maven2/org/jbpm/jbpm-human-task-war/5.2.0.Final/jb... http://repo1.maven.org/maven2/org/jbpm/jbpm-human-task-war/5.2.0.Final/jb....
It seems to deploy effortlessly on the JBoss AS7 that comes bundled with the 5.2 full installer.
However, switching from running DemoTaskService.class outside of any container, to running the jbpm-human-task-war.war is not so straight-forward as I hoped.
>From closer inspection - of the jbpm-human-task-war.war source, it seems that the main class, HumanTaskServiceServlet.java, has identical logic to the DemoTaskService.java.
Therefore, I assumed that the Mina Task Server that is created would still be visible on 127.0.0.1:9123. But this doesn't seem to be the case.
Unfortunately, with no other changes, this still causes a problem for the GWT BPM Console, which reports and error: "Could not connect task client".
Please could you advise what further configuration would be required to be able to use the jbpm-human-task-war.war with the demo setup?
Many thanks.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649518#649518]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months
[jBPM] - Human task editor, example
by Matthew Young
Matthew Young [https://community.jboss.org/people/young_matthewd] created the discussion
"Human task editor, example"
To view the discussion, visit: https://community.jboss.org/message/649472#649472
--------------------------------------------------------------
Trying to setup JBPM in Eclipse without using the installer....
Wanted to rig the JBPM/Drools tools without using the installer (too heavy for my tastes, wanted to be able to suck necessary jars via Ivy rather than having a JBRM RUNTIME among other things). Using Indigo Eclipse. Pulled down the Drools/JBPM tools from:
https://community.jboss.org/servlet/JiveServlet/download/15922-7-25925/jb... https://repository.jboss.org/nexus/content/repositories/releases/org/droo...
And did a local site with Eclipse adding the following (5.3.1.Final):
JBoss Drools Core
JBoss Drools Guvnor
JBoss Drools Task
JBoss jBPM Core
JBoss jBPM Taks
Already had BPMN2 Editor (0.0.1) and the BPMN2 Project Feature (0.7.0) along with Graphiti/Graphitit SDK 0.8.1.
Setup a normal Java project and pulled in the ProcessTest class and the Evaluation.bpmn files from the JBPM-Installer samples. Used the following in Ivy:
<dependencies>
<dependency org="org.jbpm" name="jbpm-bpmn2" rev="5.2.0.Final" conf="runtime->runtime, master"/>
<dependency org="org.jbpm" name="jbpm-human-task" rev="5.2.0.Final" conf="runtime->runtime,master"/>
<dependency org="com.h2database" name="h2" rev="1.3.161" conf="runtime->master"/>
<dependency org="org.slf4j" name="slf4j-api" rev="1.6.0" conf="runtime->master" />
<dependency org="org.slf4j" name="slf4j-log4j12" rev="1.6.0" conf="runtime->master" />
<dependency org="log4j" name="log4j" rev="1.2.16" conf="runtime->master" />
<dependency org="org.drools" name="drools-core" rev="5.3.1.Final" conf="runtime->master"/>
</dependencies>
With grabs a bunch of stuff that I fill funnel down later. Anyways.....when I run the ProcessTest it is suppost to register a Human task (on address 127.0,0.1 and the default port 9123). But the underlying NIO connector fails when starting the process:
java.lang.IllegalArgumentException: Could not connect task client
at org.jbpm.process.workitem.wsht.WSHumanTaskHandler.connect(WSHumanTaskHandler.java:76)
Why? No idea. Log4j logging gives nothing. Wondering if I am missing a jar (the h2 is there)?
This is my first time using Drools/JBPM. The ProcessTest.java basically setups up a KnowledgeBase and loads the Evaluation.bpmn from the classpath (no problems there). A session is created from the knowledge base. The Human Task (new WSHumanTaskHandler) is registered. A couple of parameters are registered when starting the "com.smaple.evaluation" process. That's it.
Another thing is that I don't have a Human Task Editor for bpmn files? Am I missing a feature/plugin?
Thanks in advance / Matthew
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/649472#649472]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
14 years, 2 months