<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
 
 
<META content="MSHTML 5.00.3105.105" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=960113214-09032002>G'day
Karen,</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=960113214-09032002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=960113214-09032002>The
event parameters allow you to pass additional information that cannot be
determined within the object attributes. If it were possible to access it within
the object there would be no need to specifically pass it with the event.
Workflow does not use genuine OO and all attributes must be able to be resolved
at runtime based only on the key to the object.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=960113214-09032002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=960113214-09032002>Once
you've bound your data and hold it within your workflow container however, you
can pass it to the object&nbsp;via a call to a method. Alternatively since
you're coding the raise of the event and passing the parameter, potentially you
could pass the email address directly.</SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=960113214-09032002></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN class=960113214-09032002>Hope
this helps,<BR>Mark </SPAN></FONT></DIV>
<DIV><FONT color=#0000ff face=Arial size=2><SPAN
class=960113214-09032002></SPAN></FONT>&nbsp;</DIV>
<DIV class=OutlookMessageHeader><FONT face="Times New Roman"
size=2>-----Original Message-----<BR><B>From:</B> Karen Bender
[mailto:karen_bender@rac.ray.com]<BR><B>Sent:</B> 08 March 2002
21:15<BR><B>To:</B> SAP-WUG@MITVMA.MIT.EDU<BR><B>Subject:</B> Problem
understanding event parameters<BR><BR></FONT></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>Dear
workflowers:</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>Here's what I'm
trying to do, but it's not working.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>From a program I put
an element in a container, then create an event.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
code:</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
swc_set_element &lt;event container&gt; 'USERID'&nbsp;
var_userid.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
call function 'SWE_EVENT_CREATE'</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>The event being
created has the parameter USERID.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>I also put USERID in
the workflow container and put it in the binding between the event and the
workflow, therefore I know a value is in the parameter.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>My problem
is:</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>I want to use the
USERID parameter to create an attribute in the object.&nbsp; This object
contains the event that is triggering the workflow.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>In the coding for
the attribute, the first thing I do is:</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>&nbsp;&nbsp;&nbsp;
swc_get_element container 'USERID' usrid.</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial
size=2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>I get nothing in the
variable usrid.&nbsp; Do I have access to the event parameters at the time the
object is being created?&nbsp; If so, how can I access it?&nbsp;
</FONT></SPAN></DIV>
<DIV><SPAN class=350542020-08032002><FONT face=Arial size=2>If not, can somebody
tell me where to put the code that converts the userid to an email address that
is needed in a task within the workflow?</FONT></SPAN></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=350542020-08032002>Thanks for any
help you can give.</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=350542020-08032002></SPAN></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=350542020-08032002>Karen
Bender</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=350542020-08032002>Raytheon
Aircraft Company</SPAN></FONT></FONT></DIV></BODY></HTML>
<BR>
<BR>
 
<P ALIGN=CENTER><FONT SIZE=2 FACE="Arial">*********************************************************</FONT> </P>
<BR>
 
<P ALIGN=CENTER><FONT SIZE=1>This e-mail may contain confidential and/or privileged information.  It is for the exclusive use of the intended recipient(s).  If you are not the intended recipient(s), you must not use, distribute, copy or take any action in reliance on it, since to do so is strictly prohibited and may be unlawful.  If you have received this e-mail in error, please return it to the sender immediately and delete it from your system.</FONT></P>
<BR>
 
<P ALIGN=CENTER><FONT SIZE=1>E-mail messages are not secure and attachments may contain software viruses which may damage your system.  Whilst we have taken every reasonable precaution to minimise this risk, we cannot accept any liability for any damage which you sustain as a result of these factors.  You are advised to carry out your own virus checks before opening any attachment.</FONT></P>
<BR>
 
<P ALIGN=CENTER><FONT SIZE=1>Any views or opinions expressed in this e-mail are solely those of the author and do not represent those of the Diagonal Group unless otherwise stated. </FONT></P>
<BR>
 
<P ALIGN=CENTER><B><FONT SIZE=2>www.diagonal.co.uk</FONT></B></P>