<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:HouschkaBold;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.a625785a-19e5-4e27-8a92-275aa9d54539, li.a625785a-19e5-4e27-8a92-275aa9d54539, div.a625785a-19e5-4e27-8a92-275aa9d54539
        {mso-style-name:a625785a-19e5-4e27-8a92-275aa9d54539;
        mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.56c37028-3542-4c8f-82ba-daca11bafdb8, li.56c37028-3542-4c8f-82ba-daca11bafdb8, div.56c37028-3542-4c8f-82ba-daca11bafdb8
        {mso-style-name:56c37028-3542-4c8f-82ba-daca11bafdb8;
        mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle20
        {mso-style-type:personal;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.EmailStyle21
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-GB link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Andy, <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Your first scenario is fairly straightforward: the IDOC_PACKET
object is not instantiated yet, that is what the &lt;???&gt; usually indicates.
Most likely some kind of buffering issue since you say that it works fine when
you test it using a breakpoint. Quick test would be to add a requested start or
a WAIT UP TO statement somewhere before the part that fails.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>The second scenario sounds correct to me that you should be receiving
a persistent reference. What I do find strange is that you are receiving a
run-time version when you test it. Does the &#8216; synchronous&#8217; setting
in SWUE make any difference there? I would not rule out a bug in SWUE.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Florin&#8217;s suggestion of using the container interface could
help too.<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cheers,<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Catherall, Andy<br>
<b>Sent:</b> 08 February 2010 10:37<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> RE: Persistent vs Runtime handles - development standards?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Two examples so far:</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><u><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>First - Child objects missing in WF &amp; WF log</span></u><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Workflow is bombing out (in new ECC6 environment) because it cannot
determine the agents... because it cannot find the object-values against which
to interrogate&nbsp;the Responsibility Rule. In this case, this is&nbsp;the
SALES ORG attribute, on the SALES ORG object (BUS0006) which is a custom
attribute of [extended] IDOCALEAUD.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>The error message is SWF_EXP001 072 &quot;Error in the evaluation
of expression '&amp;IDOC_PACKET&lt;???&gt;.ZSALESORGANIZATION.SALESORGANIZA'
for it&quot;. The &lt;???&gt; has given me a little nugget of doubt as to
whether I have&nbsp;a dodgy character or something, but I can't find it.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>In the log, this child object is clearly missing (IDOCALEAUD/IDOCPACKET
is instantiated). Yet, when I test the IDOCALEAUD object in SWO1, the SALES ORG
object does exist.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Stranger yet, if I set a break point in the virtual-attribute code,
and open the log, the code correctly finds the SALES ORG references, and then
still fails to show the object in the log.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>The variable type is SWC_OBJECT.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>I am using SWC_CREATE_OBJECT to instantiate it.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><u><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Second - Event CheckFM throwing exception</span></u><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>When creating a Document Information Record, the DRAW-FULLYCREATED
event is raised. A custom CheckFM is used to interrogate a value held the
object. The error appears to be that my code is expecting a run-time handle,
but is having a persistent handle passed to it. </span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Just as I understood this, however, I discovered that if I raise
the DRAW-FULLYCREATED event against the same object via SWUE, the
event-container now holds a run-time object reference, and the entire operation
works!</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>So, it would appear that my code has to assess whether an object
reference in a container is a&nbsp;run-time or a&nbsp;persistent handle first,
and move it to the correct variable type accordingly. As both&nbsp;CV01N and
SWUE were run in my name as foreground transactions, I was a little surprised
that the reference types in the event-container differed, and this led me to
wondering what was the 'correct' way of handling object references...?</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>I am vaguely aware, from the&nbsp;&quot;Considerations when
upgrading SAP Business Workflow...&quot; document that the handling of
SWC_OBJECT and SWOTOBJID has become stricter, but I am not entirely clear what
'right' looks like.</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Thanks</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Arial","sans-serif";
color:blue'>Andy</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

</div>

<div class=MsoNormal align=center style='text-align:center'><span lang=EN-US>

<hr size=2 width="100%" align=center>

</span></div>

<p class=MsoNormal style='margin-bottom:12.0pt'><b><span lang=EN-US
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span
lang=EN-US style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>
sap-wug-bounces@mit.edu [mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Mike
Pokraka<br>
<b>Sent:</b> Saturday 06 February 2010 09:11<br>
<b>To:</b> 'SAP Workflow Users' Group'<br>
<b>Subject:</b> RE: Persistent vs Runtime handles - development standards?</span><span
lang=EN-US><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hi Andy, <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>I don&#8217;t believe such a document exists, but could you
provide an example of such surprises? <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Basic idea is that everything is persistent when it goes outside
the current context. This means binding, container storage. Persistent is
converted to runtime for working with an object and back to persistent for
binding/storage. <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Hope that helps, <o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Mike<o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p>&nbsp;</o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span lang=EN-US style='font-size:10.0pt;font-family:
"Tahoma","sans-serif"'>From:</span></b><span lang=EN-US style='font-size:10.0pt;
font-family:"Tahoma","sans-serif"'> sap-wug-bounces@mit.edu
[mailto:sap-wug-bounces@mit.edu] <b>On Behalf Of </b>Catherall, Andy<br>
<b>Sent:</b> 05 February 2010 15:33<br>
<b>To:</b> SAP Workflow Users' Group<br>
<b>Subject:</b> BOR: Persistent vs Runtime handles - development standards?<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p>&nbsp;</o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Hi
all</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>As
I progress through my ECC6 upgrade, I have now started to trip over a few
locations where the runtime/persistent handles are not as rigorous as they
might be. This is having some entertaining effects!</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Can
anyone point me towards some development standards documents that might exist
to make sure I use the correct handle type at the correct time?</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Thanks</span><o:p></o:p></p>

</div>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:HouschkaBold;
color:blue'>Andy Catherall</span> <br>
<span style='font-size:10.0pt;font-family:HouschkaBold;color:blue'>Technical
Analyst - SAP Workflow, IXOS &amp; DMS</span> <o:p></o:p></p>

</div>

<p><span style='font-size:7.5pt;font-family:HouschkaBold'><img width=80
height=32 id="_x0000_i1025" src="cid:image001.gif@01CAA8D4.5A8F8A10"></span><o:p></o:p></p>

<p><span style='font-size:7.5pt;font-family:HouschkaBold'>Int: 751 0556</span> <br>
<span style='font-size:7.5pt;font-family:HouschkaBold'>Ext: +44 (0)121 486 0556</span>
<br>
<span style='font-size:7.5pt;font-family:HouschkaBold'>Mobile: +44 (0)7813
025481</span> <o:p></o:p></p>

<div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

</div>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:maroon'>The Cadbury Cocoa Partnership is working to secure the future of
cocoa farming around the world. Cadbury Dairy Milk bars are now Fairtrade
certified in the UK and Ireland. Visit </span></b><b><u><span style='font-size:
10.0pt;font-family:"Verdana","sans-serif";color:blue'><a
href="http://www.cadbury.com/" title="http://www.cadbury.com/">www.cadbury.com</a></span></u></b><b><span
style='font-size:10.0pt;font-family:"Verdana","sans-serif";color:maroon'> to
learn more.</span></b><o:p></o:p></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:maroon'>&nbsp;</span></b><o:p></o:p></p>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Verdana","sans-serif";
color:green'>Be part of our &quot;Purple Goes Green&quot; commitments and don't
print this email.</span></b><o:p></o:p></p>

<p class=56c37028-3542-4c8f-82ba-daca11bafdb8>&nbsp;<o:p></o:p></p>

<div>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>-----------------------------------------</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:8.0pt;margin-right:0cm;margin-bottom:
8.0pt;margin-left:0cm'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>This
email (including any attachment) is confidential and may contain privileged
information and is intended for the use of the individual(s) to whom it is
addressed. If you are not the intended recipient or receive it in error, you
may not use, distribute, disclose or copy any of the information contained
within it and it may be unlawful to do so. If you are not the intended
recipient please notify us immediately by returning this email to us at <u><span
style='color:blue'><a href="mailto:mailerror@cadbury.com">mailerror@cadbury.com</a></span></u>
and destroy all copies.</span><o:p></o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:8.0pt;margin-right:0cm;margin-bottom:
8.0pt;margin-left:0cm'><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Any
views expressed by individuals within this email do not necessarily reflect the
views of Cadbury Holdings Ltd or any of its subsidiaries or affiliates. This
email does not constitute a binding offer, acceptance, amendment, waiver or
other agreement, or create any obligation whatsoever, unless such intention is
clearly stated in the body of the email. Whilst we have taken reasonable steps
to ensure that this email and any attachments are free from viruses, recipients
are advised to subject this email to their own virus checking, in keeping with
good computing practice. We accept no liability for any damage sustained as a
result of any viruses. Please note that email received by Cadbury Holdings Ltd
or its subsidiaries or affiliates may be monitored in accordance with
applicable law. </span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>This
email originates from Cadbury Holdings Ltd (&quot;Cadbury&quot;) or Cadbury UK
(&quot;Cadbury UK&quot;) as the case may be.</span><o:p></o:p></p>

<p class=MsoNormal>&nbsp;<o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Cadbury
Holdings Ltd: registered in England and Wales, registered no. 52457<br>
Registered office address: Cadbury House,&nbsp;Sanderson Road, Uxbridge,
Middlesex, UB8 1DH United Kingdom. <span style='color:black'>Telephone: +44
(0)1895 615000 &nbsp;Fax:+44 (0)1895 615001 &nbsp;</span><br>
&nbsp;</span><o:p></o:p></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>Cadbury
UK: a partnership of Cadbury UK Ltd, Trebor Bassett Ltd and The Old Leo Company
Ltd.&nbsp;each of which is registered in England and Wales. </span><o:p></o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'><span style='font-size:10.0pt;
font-family:"Verdana","sans-serif"'>Principal trading address: Cadbury
House,&nbsp;Sanderson Road, Uxbridge, Middlesex, UB8 1DH United Kingdom. <span
style='color:black'>Telephone: +44 (0)1895 615000 &nbsp;Fax:+44 (0)1895 615001
&nbsp;</span><br>
<br>
</span><o:p></o:p></p>

<p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana","sans-serif"'>-----------------------------------------</span><o:p></o:p></p>

</div>

</div>

</div>

</div>

</body>

</html>