:PUBLISH

Use the :PUBLISH script statement to convert script variables and arrays into object variables. The :PUBLISH script statement is similar to the :PSET statement in that both script statements can pass object variables to parent tasks. :PUBLISH and :PSET differ in the following ways:

Syntax

:PUB[LISH] Variable name [, [Object variable] [,Scope] ]

Parameters

Important!

Notes:

Examples

In the following example, the SYS_ACT_ME_NAME function retrieves the object name and stores it in a script variable called &CHILD#. The :PUBLISH statement includes the WORKFLOW parameter so that the parent workflow can also use the script variable.

:SET &CHILD# = SYS_ACT_ME_NAME()
:PUBLISH &CHILD#,,"WORKFLOW"

The following example defines a script array and fills it with values from a VARA object. The array is passed on to the top workflow as an object variable.

:DEFINE &ARRAY#, string, 5
:FILL &ARRAY#[] = GET_VAR(VARA.TEST, KEY1)

:PUBLISH &ARRAY#[], VARA_ARRAY#, "TOP"

See also:

seealso

GET_PUBLISHED_VALUE

:FILL