Select Workflows from the menu.
Navigate the workflow tree in the left pane, and click on the workflow to edit. Click the Add button under Workflow Properties to add a property. You can add (reuse) an existing property or create a new property.
From the Add drop down, choose an Existing Property or add a New Property.
If you choose an Existing Property use the drop down in the Select Property window to add the property to the workflow.
Clicking OK will add that property to the workflow as read-only.
Choosing New Property will add a new row to the properties table with empty fields that need to be populated.
Provide the required values for the property.
Property is always active, whether it is part of Workflow property list or not is what matters.
User-defined code that identifies this property, which is used in the workflow and/or plugin execution.
|Display Name||No||Display name, which is used on the property pages, etc.|
Whether the property scope is Environment Instance or Project. Default is Environment Instance.
A description for the property.
The property's data type. Default is String.
Sub Data Type
Allows the user to get additional validation for Directories, JDBC URLs, and URLs.
Whether the property is encrypted or not. Encrypted property values will not display on the screen or be readable in any of the logs. Default is No.
|No||Display attribute that defines the number of rows in the input field on the Property page.|
|No||Display attribute that defines the number of columns in the input field on the Property page.|
List Data CSV
|No||Allows the user to define a comma-separated list of values that will be displayed in the Workflow Request page. If given, a Drop-down component will be displayed on the Property page.|
|No||Determines if multiple of the List Data CSV values can be selected.|
|No||Whether the Property is required or not. Defaults to No.|
|No||For String data type, this controls length of value being entered.|
|No||User can control the minimum value for data types such as Integer, Float, Double and Long.|
|No||User can control the maximum value for data types such as Integer, Float, Double and Long.|
Default value can be entered as Groovy script or literal. When using Groovy script, following Groovy variables are available:
Validation Groovy Script
Enter Groovy script to define validation for property value. The script should return true or false to indicate validation success or failure.
Groovy script can use these variables:
- Value – value entered by user for property.
- ValidationMessage – script can set specific error message in attribute, only used if script returns false.
The user who last updated the property (read-only).
The date/time in which the property was last updated (read-only).
|Actions||N/A||Contains the icon to remove the property.|
Click the Save button to save any changes.
Next, add the workflow (if it isn't already added) to the Instance by clicking Topology -> Instances. Then select the Instance to be modified and click Edit. Go to the Workflows step. Add the workflow which has the project property assigned to it. Click Save. Now the property will show up in the Project Properties section of the Project and Environment Instance properties page.
Note that adding properties to existing workflows will require you to provide values for any impacted project or environment instance (depending on the scope associated to the property that was changed).