<div>G'day all,</div>
<div>&nbsp;</div>
<div>Below is an extract from one of Jocelyn's posts last year recommending the use of header events with re-evaluation of agents as a way of making metric info more accurate. A wonderful idea. </div>
<div>&nbsp;</div>
<div>Can anyone comment if it's possible to use local events for this purpose. In ECC 5.0 it seems not, but this seems crazy. I think this would be a perfect use for local events.</div>
<div>&nbsp;</div>
<div>Is it necessary to define&nbsp;an 'updateagents' type&nbsp;event on&nbsp;each object where you want to do this? Or maybe an alternative is to create the event on the FLOWITEM object.</div>
<div>&nbsp;</div>
<div>Happy for any and all opinions.</div>
<div>&nbsp;</div>
<div>Have fun,</div>
<div>Mark</div>
<div>&nbsp;</div>
<div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">But if you are on a Basis 6.20 (e.g. R/3 4.7 or above) then there's an even easier/better way:</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">* In the basic data (look for the &quot;hat&quot; icon in the workflow builder) you can set up an event for the whole workflow, e.g. &quot;updateagents&quot; - mark it as having the effect &quot;re-evaluate rules on active work items&quot; 
</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">* Before your step, save the original agent into a multiline container element of type wfsyst-agent (or similar)</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">* In your step, assign the agents of your step as an expression pointing to your multiline container element</font></span></div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">* When the deadline occurs, raise a deadline event, e.g. &quot;Latest end reached&quot; and in the deadline path, add your new agent to the multiline container element, then fire off your &quot;update agents&quot; event. 
</font></span></div>
<div dir="ltr" align="left"><span></span><span><font face="Arial" color="#0000ff" size="2"></font></span>&nbsp;</div>
<div dir="ltr" align="left"><span><font face="Arial" color="#0000ff" size="2">Very, very effective, quite easy, and has exactly the affect you are after - plus you keep a more accurate record of the time taken to action the work item because you still have the original work item and therefore the original work item creation date/time.&nbsp; 
</font></span></div></div>