You can set parameter properties to constrain the input parameters that users provide when they run workflows.

Different parameter types can have different properties.

Table 1. Workflow Input Parameter Properties

Parameter Property

Parameter Type

Description

Maximum string length

String

Sets a maximum length for the parameter.

Minimum string length

String

Sets a minimum length for the parameter.

Matching regular expression

String

Validates the input using a regular expression.

Maximum number value

Number

Sets a maximum value for the parameter.

Minimum number value

Number

Sets a minimum value for the parameter.

Number format

Number

Formats the input for the parameter.

Mandatory input

All simple types

Makes the parameter mandatory.

Predefined answers

All simple types

Pre-defines a list of possible values for the property as an array of simple types. You either define the array manually or the property calls an action that returns an array of objects of the appropriate type.

Predefined list of elements

Any simple or complex types

Pre-defines a list of possible values for the property as an array of simple or complex types. Calls an action that returns an array of objects of the appropriate type.

Show parameter input

Any simple or complex types

Shows or hides a parameter text box in the presentation dialog box, depending on the value of a preceding Boolean parameter.

Hide parameter input

Any simple or complex types

Similar to Show parameter input, but takes the negative value of a previous Boolean parameter.

Matching expression

Any parameter type obtained from a plug-in

The input parameter matches a given expression.

Show in inventory

Any parameter type obtained from a plug-in

If set, you can run the present workflow on any object of this type by right-clicking it in the inventory view and selecting Run workflow.

Specify a root object to be shown in the chooser. Root object is provided from a parameter or attribute.

Any parameter type obtained from a plug-in

Specifies the root object if the selector for this parameter is a hierarchical list selector.

Select as

Any parameter type obtained from a plug-in

Use a list or hierarchical list selector to select the parameter.

Default value

Any simple or complex types

Default value for this parameter.

Custom validation

OGNL scriptable validation

If the OGNL expression returns a string, the validation shows this string as the text of the error result.

Data binding

Any simple or complex types

Binds to a property that you have already defined in another parameter.

Authorized only

Any parameter type obtained from a plug-in

Only authorized users can access this parameter.

Multi-lines text input

Any simple or complex types

Allows users to enter multiple lines of text in the input parameters dialog box.