Troubles with jBpm 4 Timers
aahmad Jun 23, 2009 12:16 PMHello,
I'm a beginner with jBpm 4 RC 1 and have been having a lot of troublesgetting timers defined in my jpdl files to trigger at all. All of the examples I've tried from the net have not worked.
Below I'm including a simple jpdl file I am using for test as well as the exception I receive when creating a process instance:
<?xml version="1.0" encoding="UTF-8"?> <process name="delayprocessing2" xmlns="http://jbpm.org/4.0/jpdl"> <start g="272,38,80,40"> <transition to="UpdateStatus"/> </start> <task name="UpdateStatus"> <on event="timeout"> <timer duedate="10 seconds" repeat="10 seconds"> </timer> <event-listener class="sample.DelayedAssetCheckListener"/> </on> <transition to="found"/> </task> <end g="272,432,48,48" name="lost"/> <end g="457,338,48,48" name="found"/> </process>
and here's the error:
Exception in thread "main" org.jbpm.api.JbpmException: unsuppported extension org.jbpm.jpdl.internal.model.JpdlExecution at org.jbpm.pvm.internal.model.ExecutionImpl.getExtension(ExecutionImpl.java:1021) at org.jbpm.jpdl.internal.activity.TaskActivity.execute(TaskActivity.java:48) at org.jbpm.pvm.internal.model.op.ExecuteActivity.perform(ExecuteActivity.java:57) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:589) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:562) at org.jbpm.pvm.internal.model.op.ProceedToDestination.perform(ProceedToDestination.java:56) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperationSync(ExecutionImpl.java:589) at org.jbpm.pvm.internal.model.ExecutionImpl.performAtomicOperation(ExecutionImpl.java:562) at org.jbpm.pvm.internal.model.ExecutionImpl.start(ExecutionImpl.java:201) at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:63) at org.jbpm.pvm.internal.cmd.StartProcessInstanceInLatestCmd.execute(StartProcessInstanceInLatestCmd.java:39) at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42) at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:54) at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:54) at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:55) at org.jbpm.pvm.internal.svc.ExecutionServiceImpl.startProcessInstanceByKey(ExecutionServiceImpl.java:68) at jbpmsample.Driver.main(Driver.java:41)
I would really appreciate a knowledgeable person's help with this.