<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt;color:#000000;"><DIV>Hi,<BR><BR>Now we have the extensive BAM requirement on the Drools Flow. From the documents I got a good understanding of the BAM support, but I would like to clarify the following points:<BR><BR>1. In the ProcessEventListener can&nbsp;we embed required data from the process, global variables?<BR><BR>Example I see the following in the file generated by KnowledgeRuntimeLoggerFactory&nbsp;log file:</DIV>
<DIV><BR>&lt;org.drools.audit.event.RuleFlowVariableLogEvent&gt;<BR>&nbsp; &lt;type&gt;33&lt;/type&gt;<BR>&nbsp; &lt;processId&gt;Demo&lt;/processId&gt;<BR>&nbsp; &lt;processName&gt;Demo&lt;/processName&gt;<BR>&nbsp; &lt;processInstanceId&gt;0&lt;/processInstanceId&gt;<BR>&nbsp; &lt;variableId&gt;request&lt;/variableId&gt;<BR>&nbsp; &lt;variableInstanceId&gt;request&lt;/variableInstanceId&gt;<BR>&nbsp; &lt;objectToString&gt;requestID SGH50801DV_20101021214848_0 status <BR>INTERMEDIATE&lt;/objectToString&gt;<BR>&lt;/org.drools.audit.event.RuleFlowVariableLogEvent&gt;<BR></DIV>
<DIV>Its good, But I would like to log the variables as the workflow executes, so that I can generate the meaningful reports. e.g. If the flow takes&nbsp;one path I would like to log a variable of a object and for another maybe another part of the object.</DIV>
<DIV>&nbsp;</DIV>
<DIV>It will help me to create the kind of report I am looking for. Please advice.</DIV>
<DIV>&nbsp;</DIV>
<DIV>2. Any idea on the performance impact if we log these events in the database. Does the process waits till the event is written in database or this happens asynchronously as its a event? Please clarify.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks in advance.</DIV>
<DIV>&nbsp;</DIV>
<DIV>Regards, Prafull<BR></DIV></div><br>







      </body></html>