Activating Prompt Sets
PromptSets are activated when you execute an object that the PromptSet is assigned to. During activation, the system checks for PromptSets and generates a user input form if required. The form lets you enter values that are stored and passed in PromptSet variables.
When an executable object is activated, the system checks whether it has PromptSets. If it has, the PromptSet for is displayed in the Requests view. The status of the object is Waiting for user input until the form is submitted.
You can pass prompt values in a Workflow without requiring user input if you define Workflow-specific values for the task that has assigned prompt sets. For more information, see PromptSets Tab.
In the following cases, PromptSet forms are not displayed:
- PromptSets assigned to subordinate tasks of Schedule objects are not called. Only the input prompt of the Schedule object itself is displayed.
- By default, PromptSets of subordinate tasks of a Workflow object are not displayed. You can change this behavior in the Prompt Sets Page of the Workflow object.
- In objects that are executed recurrently or are activated in an Agent Group with the mode All, the request is only displayed once when the object starts. The values you specify in the PromptSet form apply for all other executions.
For more information, see PROMPT Parameters:
- PROMPT_RESPONSETIME
Time in minutes that the system waits for a PromptSet dialog of a task to be confirmed - PROMPT_TIMEOUT
Time in minutes that the system waits for a user to log on in order to display a PromptSet dialog
Displayed Default Values and Overwriting Values
Define default values for PromptSet elements in the PromptSet object. You can overwrite these default values in the following ways, without affecting the values defined in the PromptSet object itself:
- Overwrite the values in the Variables & Prompts page of the object that the prompt set is assigned to. You can type in values, or select predefined variables. These values apply to that particular executable object only. For more information, see Prompt Sets Page.
- Enter Workflow-specific values when you use the object that the PromptSet is assigned to in a Workflow. For more information, see PromptSets Tab.
- Use scripts to modify values if the object is part of a Workflow or Schedule. Use script elements :PUT_READ_BUFFER, :PUT_PROMPT_BUFFER to modify PromptSet values in the task properties of tasks that are started by a ACTIVATE_UC_OBJECT script function. Define the read buffer variable as the same name as the PromptSet variable (Variable Name).
Note: No prompt is displayed for tasks that are activated through a Workflow, Schedule or Script.
The following table shows the possible constellations where you can change the default value of PromptSets and the value that is used:
PromptSet | Variables & Prompts page | Workflow or Schedule properties | PUT_READ_BUFFER | Default value for activation |
---|---|---|---|---|
N/A | N/A | N/A | N/A | No default value |
Value1 | N/A | N/A | N/A | Value1 |
Value1 | Value2 | N/A | N/A | Value2 |
Value2 | N/A | N/A | Value2 | |
Value1 | Value2 | Value3 | N/A | Value3 |
N/A | Value2 | Value3 | N/A | Value3 |
N/A | N/A | Value3 | N/A | Value3 |
N/A | N/A | N/A | Value4 | Value4 |
Value1 | N/A | N/A | Value4 | Value4 |
Value1 | Value2 | N/A | Value4 | Value4 |
Tip: Use the PASS_VALUES parameter of the ACTIVATE_UC_OBJECT script function to pass the object variables and all the PromptSet variables of the object to the activated object.
Responding to Prompts
Set values or override default values in the form using the interactive controls that you defined in the PromptSet Designer, unless the prompt is configured as read-only. The prompts in PromptSet forms are standard user controls, and will not be explained in detail here. For more information, see PromptSet Designer.
Input Restrictions and Invalid Values
The allowed values in prompts may be restricted. Depending on the configuration of the PromptSet element, the data you can enter in the field may have a character limit, permitted range or allowed type. The limitations on PromptSet level are already checked when the PromptSet objects are assigned.
If you enter invalid values, or have not entered a value in a required field, you cannot submit the form. Errors are marked until you enter a valid value.
Canceling a Task Through a Prompt Set Form
Click Cancel Task in the user input form to cancel the activation of the object that the prompt set is assigned to.
Modifications at Runtime
You can only modify PromptSet values at runtime for workflow and schedule tasks that have not yet been generated. Object variables cannot be modified at runtime.
Restart Behavior
When you restart an object, the PromptSet dialog displays the values that were entered during the last activation process (reference RunID = 0). If you specify a particular reference ID in the restart dialog, the values of that object execution are used.
You can use Automation Engine scripts to modify PromptSet variables. If the script generation ends normally, these modifications also apply for restarts. The modifications also apply if the task aborts afterward, regardless of whether the task was restarted from the Process Monitoring perspective, the statistics or by a script. For more information about restarting tasks by a script, see RESTART_UC_OBJECT.
Example
The following scenario shows which value is displayed in the PromptSet when an aborted job is restarted.
- You enter a value of "1" for a field in a PromptSet and submit the form.
- A script changes the value to "15".
- The Job aborts due to an OS error.
- You restart the Job.
- The PromptSet form is displayed again, and the prompt displays the value "15".
Notes:
- PromptSet value modifications that are made during a restart are logged in the activation report.
- No PromptSet dialog is displayed when Workflow or Schedule tasks are restarted. For new task starts with modified PromptSet values, modify the properties in the corresponding Workflow or Schedule.
- If the task is restarted by a script using the RESTART_UC_OBJECT function, you can use a script statement :PUT_READ_BUFFER, :PUT_PROMPT_BUFFER to override the values.
See also: