<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
nope, I can't as I just did that and the SubProcessInstanceNode does
not carry the information of the starting sub-process (or at least I
can't seem to find it) and then again the events are fired in an
unorderly manner - see JIRA JBPM-3329.<br>
I'm stuck...<br>
<br>
<br>
On 15/08/2011 17:56, Mauricio Salatino wrote:
<blockquote
cite="mid:%20%3CCANzbnyXng0ZhZosTA6c3LN-nvxRw7HaoPM_fDijFCBcOy-1m4g@mail.gmail.com"
type="cite">You can check inside the listener if the node is a <span
class="Apple-style-span" style="color: rgb(51, 51, 51);
font-family: arial, sans-serif; font-size: medium; ">
<table class="Bs nH iY" style="position: relative;
-webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px; padding-top: 0px;
padding-right: 0px; padding-bottom: 0px; padding-left: 0px;
border-collapse: collapse; background-image: initial;
background-attachment: initial; background-origin: initial;
background-clip: initial; background-color: rgb(255, 255,
255); width: 1016px; border-top-width: 1px; border-top-style:
solid; border-top-color: rgb(228, 228, 228); margin-top: 10px;
background-position: initial initial; background-repeat:
initial initial; " cellpadding="0">
<tbody>
<tr>
<td class="Bu" style="margin-top: 0px; margin-right: 0px;
margin-bottom: 0px; margin-left: 0px; font-family:
arial, sans-serif; vertical-align: top; padding-top:
0px; padding-right: 0px; padding-bottom: 0px;
padding-left: 0px; ">
<div class="nH if" style="padding-top: 0px;
padding-right: 0px; padding-bottom: 1px; padding-left:
0px; ">
<div class="nH">
<div class="nH hx" style="color: rgb(51, 51, 51);
padding-top: 4px; padding-right: 8px;
padding-bottom: 4px; padding-left: 0px; ">
<div class="nH">
<div class="h7 hn ie nH oy8Mbf" style="clear:
both; padding-bottom: 0px; ">
<div class="Bk" style="position: relative;
margin-bottom: 10px; border-right-width:
1px; border-bottom-width: 1px;
border-left-width: 1px; border-top-style:
solid; border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid; border-top-color:
rgb(239, 239, 239); border-right-color:
rgb(239, 239, 239); border-left-color:
rgb(239, 239, 239); border-bottom-color:
rgb(226, 226, 226); border-top-width: 0px;
border-top-left-radius: 2px 2px;
border-top-right-radius: 2px 2px;
border-bottom-right-radius: 2px 2px;
border-bottom-left-radius: 2px 2px; width:
775px; ">
<div class="G3 G2" style="padding-top: 3px;
background-color: rgb(255, 255, 255);
border-right-width: 1px;
border-bottom-width: 1px;
border-left-width: 1px;
border-right-style: solid;
border-bottom-style: solid;
border-left-style: solid;
border-right-color: rgb(207, 207, 207);
border-bottom-color: rgb(207, 207, 207);
border-left-color: rgb(207, 207, 207);
border-top-width: 1px; border-top-style:
solid; border-top-color: rgb(207, 207,
207); border-top-left-radius: 2px 2px;
border-top-right-radius: 2px 2px;
border-bottom-right-radius: 2px 2px;
border-bottom-left-radius: 2px 2px; ">
<div>
<div id=":sq">
<div class="HprMsc">
<div class="gs">
<div id=":ss" class="ii gt"
style="font-size: 13px;
margin-top: 5px; margin-right:
15px; margin-bottom: 5px;
margin-left: 15px;
padding-bottom: 20px; position:
relative; z-index: 2; ">
<div id=":sr">
<div bgcolor="#FFFFFF"
text="#000000"><font
size="-1">subProcessNode</font></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</span>And based on that retrieve the information right?
<div>
Cheers<br>
<div class="gmail_quote">On Mon, Aug 15, 2011 at 5:33 PM,
Burkhard Vogel <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:Burkhard.Vogel@modinter.com.ec">Burkhard.Vogel@modinter.com.ec</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div bgcolor="#FFFFFF" text="#000000"> <font size="-1">Looking
into the to me known possibilities to hook up against
the working memory without really needing to extend core
functionality, I reckon my best shot is the
org.drools.event.process.ProcessEventListener.
Unfortunately I can't seem to find an event that holds
information about the new or terminating Sub-Process and
the associated parent process. I looked into the
beforeNodeTriggered, afterNodeTriggered, BeforeNodeLeft,
afterNodeLeft, beforeProcessStarted, afterProcessStarted
events but no dice.<br>
<br>
events in order of triggering <br>
master process - </font><font size="-1">beforeProcessStarted</font><font
size="-1">: no information<br>
subProcessNode - beforeNodeTriggered: subProcessNode has
neither sub process name nor subProcessID available<br>
subProcess - beforeProcessStarted: has the
sub-Processname/id but no reference to the parent
process<br>
</font><font size="-1">subProcess - afterProcessStarted: </font><font
size="-1">has the sub-Processname/id but reference in
the external event listener?<br>
</font><font size="-1">subProcessNode -
afterNodeTriggered: external event listener has the
instanceId of the child process but no object reference,
so I'd need to query the runtime?<br>
</font><font size="-1">master process - after</font><font
size="-1">ProcessStarted</font><font size="-1">: </font><font
size="-1">external event listener has the instanceId of
the child process but no object reference, so I'd need
to query the runtime?<br>
<br>
Anyone has an idea how I'd be able no indicate my users
whats the current state of his process if its within a
sub-process instance?<br>
<br>
Regards,<br>
<font color="#888888"> Burkhard<br>
</font></font>
<div>
<div class="h5"><br>
On 11/08/2011 13:28, Mauricio Salatino wrote:
<blockquote type="cite">sure.. if you extend/configure
the bam module to store that information you will be
able to do all the queries that you need to find all
those relationships.
<div>Don't try to do that queries to the runtime
tables that are optimized and store binary data.</div>
<div>Try also to avoid loading the process instance
to do that kind of queries that can be easily
externalized into another database or data
structure that is more suited to answer those
queries.</div>
<div><br>
</div>
<div> Cheers</div>
<div><br>
<div class="gmail_quote">On Thu, Aug 11, 2011 at
2:46 PM, Burkhard Vogel <span dir="ltr"><<a
moz-do-not-send="true"
href="mailto:Burkhard.Vogel@modinter.com.ec"
target="_blank">Burkhard.Vogel@modinter.com.ec</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0
0 0 .8ex;border-left:1px #ccc
solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> <font
size="-1">Hi,<br>
</font>I checked my process instance info
table and all states are in 1 - what would
be a condition that this changes to 2
(suspended) or 3 (ended) as currently all
ended instances get deleted - is there a
configuration option to accumulate these in
a history table?<br>
<br>
<span style="font-weight:normal">R</span>elated
to this - the only way to drill down from an
process instance to the bottom most sub
process instances current task is by loading
it into the knowledge session and manually
check if the node implements a
subprocessnode instance and load that sub
process instance and so forth until I get
the last node which hasn't a node log with
type 1?<span
style="font-weight:bold;color:#204a87"> </span>Would
there be a way to query from the
process/node logs the current sub-process
and current node?<br>
<br>
<span style="font-weight:normal"><font
size="2"><font color="#204a87">T</font></font></span>o
rephrase: I have the requirement to show in
which state a current process is - which
with the current console tools will only go
as far as the parent flows current node -
but that are almost always sub-processes, so
what I'd need is a way to build a query (or
a set of queries) that would reflect the
current process instance hierarchy and the
current bottom most process/node.<br>
<span style="font-weight:normal"></span><span
style="font-weight:bold;color:#204a87"></span>I
CAN do this by reading all current instances
of a given parent task and afterwards do the
individual drill-down until I reach the
bottom most sub task - but this is
desperately slow for thousands of instances,
so I'm looking for a DB select as I reckon
all the info is in the audit tables.<br>
<br>
Best regards,<br>
Burkhard<br>
<div>-- <br>
<p> Saludos cordiales,<br>
<br>
<span style="font-size:11pt"><strong>Burkhard
Vogel</strong></span><br>
<b>Lead Strategic Development</b><br>
<br>
<br>
<img
src="cid:part1.04040306.03020107@modinter.com.ec"
name="131cf256116606ff_131b9f38fad9a34c_modinter-logo" alt="modinter"
align="bottom" border="0" height="46"
width="155"><br>
<b>Centre of Sales & Support •
Quito, Ecuador</b> </p>
<p> Leonidas Plaza N24-318 y Baquerizo
Moreno<br>
Edificio Plaza 246<br>
Phone: <a moz-do-not-send="true"
href="tel:%2B593%202%202237393%20ext%207300"
value="+59322237393" target="_blank">+593
2 2237393 ext 7300</a> </p>
<p> Mobile: <a moz-do-not-send="true"
href="tel:%2B593%209%205771800"
value="+59395771800" target="_blank">+593
9 5771800</a><br>
E-mail: <a moz-do-not-send="true"
href="mailto:burkhard.vogel@modinter.com.ec"
target="_blank">burkhard.vogel@modinter.com.ec</a>
</p>
<p> <a moz-do-not-send="true"
href="http://www.modinter.com.ec/"
target="_blank"><strong>www.modinter.com.ec</strong></a>
</p>
<p> The information in this e-mail and any
attachments is confidential and is
intended for the addressee only and may
contain confidential, proprietary or
legally privileged information. If you
are not the intended recipient, please
delete this message and any attachments
and advise the sender by return e-mail.
Unless otherwise stated, any pricing or
deliver information given in this
message is indicative only, is subject
to change and to formal communication.<br>
FISA GROUP and each or any of its
operating companies reserve the right to
monitor all e-mail communication through
its networks. </p>
</div>
</div>
<br>
_______________________________________________<br>
jbpm-dev mailing list<br>
<a moz-do-not-send="true"
href="mailto:jbpm-dev@lists.jboss.org"
target="_blank">jbpm-dev@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/jbpm-dev"
target="_blank">https://lists.jboss.org/mailman/listinfo/jbpm-dev</a><br>
<br>
</blockquote>
</div>
<br>
<br clear="all">
<br>
-- <br>
- CTO @ <a moz-do-not-send="true"
href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>
<br>
- MyJourney @ <a moz-do-not-send="true"
href="http://salaboy.wordpress.com"
target="_blank">http://salaboy.wordpress.com</a><br>
- Co-Founder @ <a moz-do-not-send="true"
href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
- Salatino "Salaboy" Mauricio -<br>
</div>
</blockquote>
<br>
<div>-- <br>
<p> Saludos cordiales,<br>
<br>
<span style="font-size:11pt"><strong>Burkhard
Vogel</strong></span><br>
<b>Lead Strategic Development</b><br>
<br>
<br>
<img
src="cid:part2.01060103.00090405@modinter.com.ec"
name="131cf256116606ff_modinter-logo"
alt="modinter" align="bottom" border="0"
height="46" width="155"><br>
<b>Centre of Sales & Support • Quito, Ecuador</b>
</p>
<p> Leonidas Plaza N24-318 y Baquerizo Moreno<br>
Edificio Plaza 246<br>
Phone: <a moz-do-not-send="true"
href="tel:%2B593%202%202237393%20ext%207300"
value="+59322237393" target="_blank">+593 2
2237393 ext 7300</a> </p>
<p> Mobile: <a moz-do-not-send="true"
href="tel:%2B593%209%205771800"
value="+59395771800" target="_blank">+593 9
5771800</a><br>
E-mail: <a moz-do-not-send="true"
href="mailto:burkhard.vogel@modinter.com.ec"
target="_blank">burkhard.vogel@modinter.com.ec</a>
</p>
<p> <a moz-do-not-send="true"
href="http://www.modinter.com.ec/"
target="_blank"><strong>www.modinter.com.ec</strong></a>
</p>
<p> The information in this e-mail and any
attachments is confidential and is intended for
the addressee only and may contain confidential,
proprietary or legally privileged information. If
you are not the intended recipient, please delete
this message and any attachments and advise the
sender by return e-mail. Unless otherwise stated,
any pricing or deliver information given in this
message is indicative only, is subject to change
and to formal communication.<br>
FISA GROUP and each or any of its operating
companies reserve the right to monitor all e-mail
communication through its networks. </p>
</div>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
-- <br>
- CTO @ <a moz-do-not-send="true"
href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>
<br>
- MyJourney @ <a moz-do-not-send="true"
href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a>
<div>
- Co-Founder @ <a moz-do-not-send="true"
href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br>
- Co-Founder @ <a moz-do-not-send="true"
href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br>
<br>
- Salatino "Salaboy" Mauricio -</div>
<br>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="CONTENT-TYPE" content="text/html;
charset=windows-1252">
<title>BV modinter Firma</title>
<meta name="AUTHOR" content="Burkhard Vogel">
<style type="text/css">
<!--
P,a {margin-bottom: 0cm; font-family: Verdana, sans serif; color: #1e5c79; font-size: 8pt; }
p.c1 {margin-bottom: 12pt}
p.c3 {font-family: Trebuchet MS, sans serif; color: #a6a6a6; font-size: 6pt;}
-->
</style>
<p class="c1"> Saludos cordiales,<br>
<br>
<span style="font-size:11pt"><strong>Burkhard Vogel</strong></span><br>
<b>Lead Strategic Development</b><br>
<br>
<br>
<img src="cid:part3.09020503.07090909@modinter.com.ec"
name="modinter-logo" id="modinter-logo" alt="modinter"
align="bottom" border="0" height="46" width="155"><br>
<b>Centre of Sales & Support • Quito, Ecuador</b> </p>
<p class="c1"> Leonidas Plaza N24-318 y Baquerizo Moreno<br>
Edificio Plaza 246<br>
Phone: +593 2 2237393 ext 7300 </p>
<p class="c1"> Mobile: +593 9 5771800<br>
E-mail: <a href="mailto:burkhard.vogel@modinter.com.ec">burkhard.vogel@modinter.com.ec</a>
</p>
<p> <a href="http://www.modinter.com.ec/"><strong>www.modinter.com.ec</strong></a>
</p>
<p class="c3"> The information in this e-mail and any attachments
is confidential and is intended for the addressee only and may
contain confidential, proprietary or legally privileged
information. If you are not the intended recipient, please
delete this message and any attachments and advise the sender by
return e-mail. Unless otherwise stated, any pricing or deliver
information given in this message is indicative only, is subject
to change and to formal communication.<br>
FISA GROUP and each or any of its operating companies reserve
the right to monitor all e-mail communication through its
networks. </p>
</div>
</body>
</html>