[JBoss jBPM] - Re: Need help to fix timer issue
by gchanteb
It works:
<?xml version="1.0" encoding="UTF-8"?>
|
| <process-definition xmlns="urn:jbpm.org:jpdl-3.2" name="process6">
|
| <start-state name="start-state1">
| <transition to="tsmactoncr"></transition>
| </start-state>
|
| <state name="tsmactoncr" async="true">
| <timer name="timer" duedate="7 seconds" transition="to escalated">
| <script>
| System.out.println("escalatedr---::"+node.getName());
| </script>
| </timer>
| <transition to="normailflow" name="to normal flow"></transition>
| <transition to="escalationflow" name="to escalated"></transition>
| </state>
|
| <state name="normailflow">
| <event type="node-enter">
| <script>
| System.out.println("Node-enter: normailflow");
| </script>
| </event>
| <transition to="end-state1"></transition>
| </state>
|
| <state name="escalationflow">
| <event type="node-enter">
| <script>
| System.out.println("Node-enter: escalationflow");
| </script>
| </event>
| <transition to="end-state1"></transition>
| </state>
|
| <end-state name="end-state1"></end-state>
|
| </process-definition>
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218680#4218680
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218680
17 years, 1 month
[JBoss jBPM] - Re: Need help to fix timer issue
by Arunkumar DSRC
If I have a actionHandler insted of script the following error occurs:
| org.jbpm.graph.def.DelegationException
| at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:382)
| 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:585)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
| at org.jbpm.graph.def.ProcessDefinition$$EnhancerByCGLIB$$ea1c8c52.raiseException(<generated>)
| at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:373)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:276)
| 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:585)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
| at org.jbpm.graph.node.State$$EnhancerByCGLIB$$d075c3bc.executeAction(<generated>)
| at org.jbpm.job.Timer.execute(Timer.java:56)
| 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:585)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
| at org.jbpm.job.Job$$EnhancerByCGLIB$$1be105c5.execute(<generated>)
| at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:173)
| at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:64)
| Caused by: java.lang.NullPointerException
| at org.jbpm.graph.def.Action.execute(Action.java:122)
| 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:585)
| at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
| at org.jbpm.graph.def.Action$$EnhancerByCGLIB$$33e1b16.execute(<generated>)
| at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
| ... 15 more
|
|
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218649#4218649
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218649
17 years, 1 month
[JBoss jBPM] - Re: Need help to fix timer issue
by Arunkumar DSRC
I am using JBPM 3.2.3 and tomcat 5.5.20
| <state name="tsmactoncr" async="true">
| <event type="node-leave">
| <cancel-timer name="timer"></cancel-timer>
| </event>
| <timer duedate="7 seconds" name="timer" transition="to escalated">
| <script>
| System.out.println("escalatedr---::"+node.getName());
| node.leave(executionContext,"to escalated");
| </script>
| </timer>
| <transition to="normailflow" name="to normal flow"></transition>
| <transition to="escalationflow" name="to escalated"></transition>
| </state>
|
I have a state node where I have a timer which is set for 7 seconds and transition set to "to escalated".
I also have a script tag in which i have a node.leave("to escalated");.If I dont provide with the node.leave I see the SOP getting printed in a infinite loop.
My requirement is if the timer is triggred and after 7 seconds I want to send a mail automatically for which I have a mail node and should take the transition"to escalated". if user acts on it in less than 7 seconds it should trigger a different transition say" normalflow"
Thanks for your help in advance.
Arunkumar
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218648#4218648
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218648
17 years, 1 month
[JBoss jBPM] - Error Deploying
by b16d
Hello, I am testing jboss(5.0.0) jbpm with eclipse. When a deploy a project I have this error in Eclipse log :
| !ENTRY org.jbpm.gd.jpdl 4 0 2009-03-17 13:49:37.234
| !MESSAGE Exception happened while deploying
| !STACK 0
| java.io.IOException: Server returned HTTP response code: 403 for URL: http://localhost:8080/jbpm-console/app/upload
| at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
| at org.jbpm.gd.jpdl.util.ProcessDeployer.deployProcessWithServlet(Unknown Source)
| at org.jbpm.gd.jpdl.util.ProcessDeployer.access$3(Unknown Source)
| at org.jbpm.gd.jpdl.util.ProcessDeployer$1.run(Unknown Source)
| at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:464)
| at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:372)
| at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:507)
| at org.jbpm.gd.jpdl.util.ProcessDeployer.showProgressMonitorDialog(Unknown Source)
| at org.jbpm.gd.jpdl.util.ProcessDeployer.deploy(Unknown Source)
| at org.jbpm.gd.jpdl.deployment.DeploymentForm$1.widgetSelected(Unknown Source)
| at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
| at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
| at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
| at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3823)
| at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3422)
| at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2384)
| at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2348)
| at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2200)
| at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:495)
| at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:288)
| at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:490)
| at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
| at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
| at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193)
| at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
| at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:386)
| at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
| at java.lang.reflect.Method.invoke(Unknown Source)
| at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549)
| at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504)
| at org.eclipse.equinox.launcher.Main.run(Main.java:1236)
How I can deply my application with no error?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218626#4218626
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218626
17 years, 1 month
[JBoss jBPM] - Re: Need help to fix timer issue
by Arunkumar DSRC
When I try to add action handler I am getting the following error:
org.jbpm.graph.def.DelegationException
at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:382)
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:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.graph.def.ProcessDefinition$$EnhancerByCGLIB$$1ba96838.raiseException()
at org.jbpm.graph.def.GraphElement.raiseException(GraphElement.java:373)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:276)
at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:215)
at org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:185)
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:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.graph.node.State$$EnhancerByCGLIB$$2029fa2.fireAndPropagateEvent()
at org.jbpm.job.Timer.execute(Timer.java:48)
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:585)
at org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer.invoke(CGLIBLazyInitializer.java:157)
at org.jbpm.job.Job$$EnhancerByCGLIB$$4d6de1ab.execute()
at org.jbpm.job.executor.JobExecutorThread.executeJob(JobExecutorThread.java:173)
at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:64)
Caused by: java.lang.NullPointerException
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)
... 17 more
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4218582#4218582
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4218582
17 years, 1 month