Output properties
Output properties are specialized properties that process steps generate. You use output properties to pass parameters to subsequent steps in a process.
You can use output properties in component processes and generic processes.
blaExists
output property:
def exitCodeChecker = { exitCode ->
if (exitCode == 0) {
properties.setProperty("blaExists", "true");
exitValue = 0;
}
else if (exitCode == 30) {
properties.setProperty("blaExists", "false");
exitValue = 0;
}
else {
properties.setProperty("blaExists", "unknown");
exitValue = 1;
}
properties.setProperty("propName",propValue);
,
where propName
is the name of the property and
propValue
is the value of the property. For
example:properties.setProperty("url", "http://example.com");
blaExists
output property by using the code
${p:Check If BLA Exists/blaExists}
:
You can use output properties in other postprocessing scripts, step preconditions, step properties, or the code of steps themselves. Passing property values among processes, resources, and steps helps limit the requirement to provide input manually and to maintain accuracy and reliability.
Secure output properties
You can set an ouput property as secure property for a process running on a Web
agent. As an example, you can obsecure the value of a password field in the output
log and Web UI. Define the secure output property by adding
.$secure
at the end of the property.
outProps.setProperty("Password.$secure", "xyz");
or set the same property in Groovy as:
outProps.setProperty("Password.\$secure", "xyz");
Note that the agent must have support for the special handling of the indicated
output property naming convention. The environment variable
UCD_USE_ENCRYPTED_PROPERTIES
with a value of
true
indicates the support of this functionality in a plug-in
step and is handled by the agent.
If the environment variable is not available with the agent, then upgrade the agent to a newer version that has the functionality. Manually adding the environment variable does not enable the desired functionality in an older agent. It rather sets the propery as a regular output property when it is intended to be set as secure.
Manual task output properties
- Name of the approver.
- Display name of the approver.
- Date and time of approval in the Epoch format.
Epoch time is a standard machine-readable format. The
ApprovalTime
property is used to display the time in Epoch format. This format is used internally by another plug-in step. - Date and time of approval in the UTC format.
The
FormattedApprovalTime
property is used to get the approval time in UTC format and in a human-readable format.
manualTask
and the second step is a Shell step. You can
add the following manual task output properties to the Shell
step:echo "${p:manualTask/ApproverName}"
echo "${p:manualTask/ApproverDisplayName}"
echo "${p:manualTask/ApprovalTime}"
echo "${p:manualTask/FormattedApprovalTime}"
After the completion of the process, you can view the following information in the output log:
=======================
command output:
John P. Doe
John
1123489611901
2024-08-12T19:06:51.901Z
========================