There is no easy way to have optional parameters on an adapter

Description

Many operators have optional parameters, there is currently no easy way to deal with these parameters with the STA.

Environment

None

GitHub Work

None

Activity

Cosmin Cara 19 May 2016 at 13:14

Added support for optional parameters.
These parameters can be defined in the operator parameters table with no default value and with Not Null and Not Empty properties unchecked (in the parameter detail form).
Then, in the template, an optional parameter should be given as:
#optional("label", $param)

For example:
#optional("--maxit", $maxIt)
assuming that $maxIt parameter has been already defined for the adapter.

Then, in the execution dialog, if this parameter has no value given, it will be omitted from the generated command line.

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Components

Priority

Created 3 March 2016 at 13:50
Updated 6 October 2016 at 06:37
Resolved 19 May 2016 at 13:14