Hello Elmo,
Again many thanks for you reply.
I did added the action to "node-enter" event but it did not changed any thing.
Let me try to elaborate on exactly what I am doing. I have a jBPM execution
engine that first adds a generic action handler to each transition. The action
handler prints a message stating the name of the "from" node and "to" node and
also saves process instance into database. The engine than saves the modified
process definition and creates process instance using the modified process
definition and runs the process instance by calling signal() on it. In the test
jBPM process, I only have node and each node has an action handler associated
with it that waits for specified time and than calls
executionContext.leaveNode(). If I do not interrupt the execution, all works
fine and I do see entries into the process definition, process instance and
action table. However, when I interrupt the process instance execution (by
Ctrl-C when the action handler on the second node is waiting) and try to rerun
the process instance I get the null node exception. The 'End' attribute of the
process instance table has null value in this case and the
'isabletoreactiveparent' attrubute of the token table has value 'true' in it
(see below for the few of the table contents). The one thing I am not able so
sure about is in what table does it specify where the process instance should
(re)start from? Is it some combination of action/transition table?
Please give any help you can. Thanks again for your time and help.
Thanks
Raj
Process Instance Table:
ID_ START_ END_
PROCESSDEFINITION_ ROOTTOKEN_ SUPERPROCESSTOKE
| N_
| --- ----------------------------- -----------------------------
------------------ ---------- ----------------
| --
| 1 2006-01-18 12:11:47.411000000 2006-01-18 12:11:58.155000000 1
1 (null)
|
| 2 2006-01-18 12:16:16.520000000 (null) 2
2 (null)
|
|
|
|
Action table (only non-null attributes):
ID_ CLASS ISPROPAGATIONALLOWED_ ACTIONDELEGATION_ EVENT_ EVENTINDEX_
| --- ----- --------------------- ----------------- ------ -----------
| 1 A true 1 1 0
| 2 A true 2 1 1
| 3 A true 3 2 0
| 4 A true 4 3 0
| 5 A true 5 4 0
| 6 A true 6 5 0
| 7 A true 7 6 0
| 8 A true 8 6 1
| 9 A true 9 7 0
| 10 A true 10 8 0
| 11 A true 11 9 0
| 12 A true 12 10 0
|
|
Delegation table:
ID_ CLASSNAME_ CONFIGURATION_
|
CONFIGTYPE_ PROCE
| SSDEFINITION_
| --- ---------------------------------------------
------------------------------------------------------------
|
--------------------------------------------------------------------------------------------
----------- -----
| -------------
| 1 jpl.mipl.pgs.jbpm.action.SetUpEnv
<UPFFileName>/project/rt/dev/rrp/pgs/test/upfDir/testJBPM.up
| f</UPFFileName>
(null) (null
| )
| 2 jpl.mipl.pgs.jbpm.action.ActionUponTransition
<toNode>first</toNode><fromNode>start</fromNode>
|
(null) (null
| )
| 3 jpl.mipl.pgs.test.Testing
| <leaveNode xmlns="http://jbpm.org/3/jpdl">true</leaveNode>
| <waitTimeBound xmlns="http://jbpm.org/3/jpdl">2000</waitTimeBound>
| (null) 1
| 4 jpl.mipl.pgs.jbpm.action.ActionUponTransition
<toNode>second</toNode><fromNode>first</fromNode>
|
(null) (null
| )
| 5 jpl.mipl.pgs.test.Testing
| <leaveNode xmlns="http://jbpm.org/3/jpdl">true</leaveNode>
| <waitTimeBound xmlns="http://jbpm.org/3/jpdl">8000</waitTimeBound>
| (null) 1
| 6 jpl.mipl.pgs.jbpm.action.ActionUponTransition
<toNode>end</toNode><fromNode>second</fromNode>
|
(null) (null
| )
| 7 jpl.mipl.pgs.jbpm.action.SetUpEnv
<UPFFileName>/project/rt/dev/rrp/pgs/test/upfDir/testJBPM.up
| f</UPFFileName>
(null) (null
| )
| 8 jpl.mipl.pgs.jbpm.action.ActionUponTransition
<toNode>first</toNode><fromNode>start</fromNode>
|
(null) (null
| )
| 9 jpl.mipl.pgs.test.Testing
| <leaveNode xmlns="http://jbpm.org/3/jpdl">true</leaveNode>
| <waitTimeBound xmlns="http://jbpm.org/3/jpdl">2000</waitTimeBound>
| (null) 2
| 10 jpl.mipl.pgs.jbpm.action.ActionUponTransition
<toNode>second</toNode><fromNode>first</fromNode>
|
(null) (null
| )
| 11 jpl.mipl.pgs.test.Testing
| <leaveNode xmlns="http://jbpm.org/3/jpdl">true</leaveNode>
| <waitTimeBound xmlns="http://jbpm.org/3/jpdl">8000</waitTimeBound>
| (null) 2
| 12 jpl.mipl.pgs.jbpm.action.ActionUponTransition
<toNode>end</toNode><fromNode>second</fromNode>
|
(null) (null
| )
|
|
Event table:
ID_ EVENTTYPE_ TYPE_ GRAPHELEMENT_ PROCESSDEFINITION_ NODE_ TRANSITION_ TASK_
| --- ---------- ----- ------------- ------------------ ------ -----------
------
| 1 transition T 1 (null) (null) 1
(null)
| 2 node-enter N 3 (null) 3 (null)
(null)
| 3 transition T 2 (null) (null) 2
(null)
| 4 node-enter N 4 (null) 4 (null)
(null)
| 5 transition T 3 (null) (null) 3
(null)
| 6 transition T 4 (null) (null) 4
(null)
| 7 node-enter N 7 (null) 7 (null)
(null)
| 8 transition T 5 (null) (null) 5
(null)
| 9 node-enter N 8 (null) 8 (null)
(null)
|
|
Node table:
| ID_ CLASS_ NAME_ PROCESSDEFINITION_ ACTION_ SUPERSTATE_
SUBPROCESSDEFINITION_ DECISIONDELEGATION SIGNAL_ CREA
| TETASKS_ NODECOLLECTIONINDEX_
| --- ------ ------ ------------------ ------- -----------
--------------------- ------------------ ------- ----
| -------- --------------------
| 1 R start 1 (null) (null) (null)
(null) (null) (nul
| l) 0
| 2 E end 1 (null) (null) (null)
(null) (null) (nul
| l) 1
| 3 N first 1 (null) (null) (null)
(null) (null) (nul
| l) 2
| 4 N second 1 (null) (null) (null)
(null) (null) (nul
| l) 3
| 5 R start 2 (null) (null) (null)
(null) (null) (nul
| l) 0
| 6 E end 2 (null) (null) (null)
(null) (null) (nul
| l) 1
| 7 N first 2 (null) (null) (null)
(null) (null) (nul
| l) 2
| 8 N second 2 (null) (null) (null)
(null) (null) (nul
| l) 3
|
|
Transition table:
|
| ID_ NAME_ PROCESSDEFINITION_ FROM_ TO_ FROMINDEX_
| --- ----- ------------------ ----- --- ----------
| 1 tr1 1 1 3 0
| 2 tr1 1 3 4 0
| 3 tr1 1 4 2 0
| 4 tr1 2 5 7 0
| 5 tr1 2 7 8 0
| 6 tr1 2 8 6 0
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3918235#3918235
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3918235
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user