The use case is an action that shows elements in a dialog table. The elements in the dialog table should be selectable. The selected elements should be processed by a subsequent tool and the changes to the elements should be visible after the action completes.
In the example shown below an action is modelled by which a change qualifier can be set to all selected elements.
The example model assumes that the AWM elements are identified by a name and a type.
The action to set the change qualifier consists of three tools:
It is crucial that the action is defined as a mass processing action.
The first tool in the sequence just returns a file descriptor which contains a list of elements.
The second tool in the sequence is a modelled dialog. The dialog has a property representing the change qualifier as String input parameter from parameter type User_Input. The second input parameter is the file descriptor provided by the preceding tool. It is of parameter type Previous_Tool. In order that the elements in the table are selectable the attribute "UI Multi Selection" in the relationship "Tool has Input Parameter" must be set to true. The modelled dialog tool is modelled like this:
The last tool in the sequence does the update of the change qualifier to the elements selected in the table dialog. The tool gets as String input parameter the change qualifier property and as MassProcessing input parameter the identifying properties of the selected elements. All input parameters have to be modelled as parameter type Previous_Tool. The tool returns as ToolDefinedResourceOperations the identifying element properties and the new change qualifier value.