OpenWGA 7.7 - TMLScript reference
Object:
ProcessContext
Description |
This object is a special Lookup table which stores context data for the process of a WebTML form. As the data on the processContext is kept on the server it may hold any object storable in a lookup table, including objects that are not serializable and have pointers to other live objects.
On each creation of a WebTML form an individual process context is created and carried along as the form is used across requests. Therefor separate instances of the same form have different process contexts, even if they are for the same user. The data is persisted as long as the individual form instance survives. For normal forms this means: it survives as long as the form is posted on to the next request. For persistent forms this means: It survives as long until the form is reset or the session invalidates. At the end of a process you should call processContext.kill() if possible to release the resources stored on the context. Otherwise they will stay on the browser session until it invalidates. |
||||||||
Retrieval | tmlform.processContext | ||||||||
Allowed in script types |
|
||||||||
Properties and methods |
|
||||||||
Examples | See Process context from Concepts and Features for a working example. |