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.
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
========================