Email address not passing - virtual attribute problem?

Florin Wach florin.wach at gmx.net
Thu Jun 5 08:51:18 EDT 2008


Hoi Cheri,

as far as I know, the virtual attributes are processed each time you access them. (unlike the object builder in test modes, that touches every virtual attribute in the test screen).

If you need to access the result of a virtual attribute from another one use the following statement:

DATA: value   TYPE C. "or whatever
swc_get_property self 'VirtualAttribB' value.

Make sure, that VirtualAttribB doesn't call this virt. attribute again to avoid endless loops.

Best wishes,
Florin


-------- Original-Nachricht --------
> Datum: Thu, 5 Jun 2008 08:17:08 -0400
> Von: "Cheri Myers" <myersc1 at nku.edu>
> An: sap-wug at mit.edu
> Betreff: Email address not passing - virtual attribute problem?

> 
> I have a workflow for an Admissions Application for SLCM currently in
> development. It uses Business Object BUS7051 creating notifications with
> all of the data from the application. We have a subtype to the Business
> Object with quite a few added virtual attributes that look up
> information from the notification to use in the container for workflow.
> One of these values is the email address. The first step in the workflow
> is to send an email using the email address in the virtual attribute.
> However, 1 in 8 of these error because of a blank address. I know that
> my bindings are not a problem because most of the time it works fine,
> even using the same email address. When I look at the container in the
> technical log, the email address is there. 
> 
> There is quite a bit of code behind each of the virtual attributes
> because it looks up all of the SPECIAL DATA for each notification and
> then loops through to get the value needed. My guess is that the problem
> is that when the event triggers workflow, sometimes workflow gets to the
> email step and errors before all of the virtual attributes can be
> created with the logic used behind them. We have also had similar
> problems later in the process. I have had trouble trying to figure out
> why because these are intermittent problems that don't happen to every
> workflow. 
> 
> Does this theory make any sense? My question is: when the workflow
> triggers does it wait at each step for the virtual attributes to be
> generated before continuing?  Is there another reason that I'm not
> thinking of that this may be happening?  Any suggestions?
> 
> 
> Thanks,
> Cheri L. Myers
> Northern Kentucky University
> IT - PRISM Project
> Phone: 859-572-7673
> Email: myersc1 at nku.edu
>  
>  
> 
> _______________________________________________
> SAP-WUG mailing list
> SAP-WUG at mit.edu
> http://mailman.mit.edu/mailman/listinfo/sap-wug



More information about the SAP-WUG mailing list