The Tool has Input Parameter relationship describes exactly one input parameter of a tool. The reference of the relationship is a property whose property value can be passed as parameter to the tool at run time.
The Parameter From attribute determines where the value of the parameters should be obtained from. There are three ways of determining the origin of parameters:
The context includes all property values that are available at the start of the execution of an action, and does not change during the tool sequence. For example, if you execute an action on an element, all the property values of the element, the element list in which it is located and the resources where it is found (such as filter, element) are available. The Properties view at run time is a good way of obtaining an overview of the available property values of a selected resource.
This setting is intended for the transfer of parameters between tools that are temporarily managed in a parameter memory. No property values from this memory are available to the first tool in a tool sequence. As soon as a tool creates an output, the output properties and their values are available for subsequent tools. In the parameter memory, only one property value is saved for a property. See Relationship: Tool Has Output Parameter for more information.
A tool that outputs a property value for a property that already exists in the memory replaces this value, see the figure below.
User_Input means that the parameter should be entered by the user during the execution of the tool. This is used in tools with a user interface, such as the Input dialog box. In this case, parameter value is transferred to the tool.
The Parameter Memory is the temporary storage area for output tool parameters. The values 123, ABC and XYZ are the concrete outputs of the respective tools and are saved as property values. The illustration shows how the property PROP_2 has been referenced for two tools as an output parameter. The second output (XYZ) overwrites the first (ABC).
The SCLM Architecture Definition Generation tool (SCLM_TOOL_ISPF_REX_Archgen) is an example of a tool with two different kind of input parameters:
The MassProcessing input parameters are taken from the context in which the action is executed (Parameter From = Context). This means that for each selected item the values of the properties related to the MassProcessing parameters are passed to the tool. In this case, the MassProcessing input parameters are passed to an ISPF REXX tool via the ISPF table TAUTOTIP. The MassProcessing properties of type Parameter From=Context must be available in the context of the selected elements. It is also possible to define all MassProcessing input parameters of type Parameter From=Previous Tool. In this case a preceding tool in the action must supply the MassProcessing input parameters as MassProcessing output parameters. The MassProcessing input parameters of a tool have to come from one source, either the context or from a previous tool.
The String input parameters are taken from the previous tool (Parameter From = Previous_Tool). The values of these properties passed to the tool are identical for each selected element. In this case, the parameters are passed as regular arguments to the ISPF REXX tool. The assumption is that another tool is configured for an action using a preceding tool's parameters. The preceding tool could be an input dialog as in the standard SCLM model or just a tool deriving the String input parameters from some default settings.
The tool SCLM_TOOL_AWM_UI_InputArchgenOptions is of type 'Open Modeled Dialog'. A tool of type 'Open Modeled Dialog' typically has String input parameters which are represented in the dialog as dialog fields. This is where the parameter attributes listed under UI are of relevance. The parameter SCLM_PROP_LIST_StartGrp is derived from the context, the other parameters are taken from user input. A parameter derived from the context presents the value of the dialog field with the current value from the context. Typically, parameters which are mapped to an element type are derived from the context when opening a modeled dialog. Parameters which are not mapped to any element type should be modeled as Parameter From=User_Input in a tool of type 'Open Modeled Dialog'. A tool of type 'Open Modeled Dialog' treats input parameters as output parameters. This means the values entered in the input dialog can be used by following tools in the same action as input parameters with Parameter From=Previous_Tool.
The OFFL_TOOL_AWM_BrowseOSFile tool is an example of a tool which gets a file as an input parameter. Typically, a file input parameter has a Parameter From=Previous_Tool. The file is returned by a preceding tool and is used as an input parameter for the OFFL_TOOL_AWM_BrowseOSFile tool. In the standard SCLM model the previous tool is the tool OFFL_TOOL_AWM_LocalTempFileCreator: