Links overview
When the sequence of function elements are executed, data is transformed and transferred from the input document to the output document. The source and target of this data transfer is defined by connecting document elements and function elements with Data Links. In addition to Data Links, you can also use Control Link to control the iteration of a loop function.
This table shows the element connection details when you add links:
Element | Connection Details |
---|---|
Document elements |
Elements with multiple multiplicities (repeating elements) can be connected to (input) or from (output) a Loop. This means that the element multiplicity will control the iteration of the loop (input element ) or the population of an output document (output element). Elements with single multiplicity can be connected to (input element) or from (output element) input/output parameters. |
Boolean function | Must be connected to a loop. |
Variables | Can be connected to input parameters or to output parameters. |
Constants | Can be connected to input parameters. |
Adding links between function elements
You can create Data Links and Control Links between function elements.
Follow these rules:
-
Data Links between UVJ and Repository functions output parameters to input parameters of UBJ, UVJ, and Repository functions.
-
Control Link between a function (M3 API or Database) and a loop.
This means that the occurrence of retreived records controls the number of times that the loop will iterate.
-
Control Link between a UBJ function and a loop.
This means that the Boolean result controls if the loop shall iterate or not.
Assigning variables or constants to function elements
You can assign Variables or constants to function elements.
Follow these rules:
-
Variables to input/output parameters of UVJ, UBJ, and Repository functions.
-
Constants to input parameters of UVJ, UBJ, and Repository functions.