-
2. Re: How to get external event to cancel human task and progress process
swiderski.maciej Aug 27, 2012 1:57 AM (in response to stevearoonie)you should put a boundary interrupting event on your user task (or sub process if needed) to have alternative flow taken in case of external event and ensure that user task will be canceled.
HTH
-
3. Re: How to get external event to cancel human task and progress process
acarpine Aug 30, 2012 7:00 AM (in response to stevearoonie)Trying to use a boundary intermediate event on my user task (as used by Steve) I get an error when I try to build the package
400 An error occurred building the module.
the server.log reports
12:52:17,206 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) java.io.NotSerializableException: org.jbpm.bpmn2.xml.ProcessHandler$1
12:52:17,206 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
[...]
12:52:17,237 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:952)
12:52:17,237 ERROR [stderr] (http-localhost-127.0.0.1-8080-5) at java.lang.Thread.run(Thread.java:662)
12:52:17,237 INFO [stdout] (http-localhost-127.0.0.1-8080-5) ERROR 30-08 12:52:17,237 (LoggingHelper.java:error:67) An error occurred building the module [defaultPackage]: org.jbpm.bpmn2.xml.ProcessHandler$1
12:52:17,237 INFO [stdout] (http-localhost-127.0.0.1-8080-5) ERROR 30-08 12:52:17,237 (LoggingHelper.java:error:74) Service method 'public abstract org.drools.guvnor.client.rpc.BuilderResult org.drools.guvnor.client.rpc.ModuleService.buildPackage(java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,boolean,java.lang.String) throws com.google.gwt.user.client.rpc.SerializationException' threw an unexpected exception: org.drools.repository.RulesRepositoryException: An error occurred building the module.
12:52:17,237 INFO [stdout] (http-localhost-127.0.0.1-8080-5) org.drools.repository.RulesRepositoryException: An error occurred building the module.
12:52:17,237 INFO [stdout] (http-localhost-127.0.0.1-8080-5) at org.drools.guvnor.server.builder.PackageAssembler.getCompiledBinary(PackageAssembler.java:186)
12:52:17,253 INFO [stdout] (http-localhost-127.0.0.1-8080-5) at java.lang.Thread.run(Thread.java:662)
12:52:17,253 INFO [stdout] (http-localhost-127.0.0.1-8080-5) Caused by: java.io.NotSerializableException: org.jbpm.bpmn2.xml.ProcessHandler$1
12:52:17,253 INFO [stdout] (http-localhost-127.0.0.1-8080-5) at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1164)
[...]
12:52:17,253 INFO [stdout] (http-localhost-127.0.0.1-8080-5) at org.drools.guvnor.server.builder.PackageAssembler.getCompiledBinary(PackageAssembler.java:180)
12:52:17,253 INFO [stdout] (http-localhost-127.0.0.1-8080-5) ... 40 more
The error is easily repro just setting the CancelActivity attribute to true for Timer Intermediate Event and Signal Intermediate Event (I haven't tried the others).
any idea?
thanks