SWC_CONTAINER_TO_PERSISTENT how-to?
Mark Pyc
markpyc at hotmail.com
Tue Feb 1 11:24:56 EST 2005
G'day Rick,
It's only containers that are set to Persistent or Runtime, not business
object attributes. It sounds like you want the business object to behave
like a real OO object, but it doesn't.
The object can not store any values as such. Any attributes must be
calculatable at runtime. If, for example, a method returns a value which you
want to hang on to for later use, you need to store that value in the WF
container. You can't force the object to hang on to a value in an attribute
with any standard commands.
If you do need an attribute to keep a calculated values between calls then
you'll have to stick the value in the database somewhere - normally your own
Z-table - and read it back in the attribute.
Have fun,
Mark
From: "Rick Sample" <Rick.Sample at GBE.COM>
Reply-To: "SAP Workflow Users' Group" <sap-wug at mit.edu>
To: SAP-WUG at MITVMA.MIT.EDU
Subject: SWC_CONTAINER_TO_PERSISTENT how-to?
Date: Tue, 01 Feb 2005 08:40:52 -0600
I would like to set a business object attribute to persistent but don't
know how.
I want to store a value in an attribute. If that value is set, don't
get it from the WF Container.
Else get it from the WF container.
Any examples in the system I can look at?
Any help is appreciated.
4.6C
Rick Sample
SAP Workflow / Developer
Graybar, Inc.
11885 Lackland Rd.
63146-4208
314.573.5822
Rick.Sample at GBE.com
_______________________________________________
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