Target: Any attribute annotated with @Parameter.
Description: Defines a specific rule to a parameter, regarding others.
JavaDoc: Click here
Attributes:
| Name | Description | Data type | Required | Default value |
| ruleID | The id of the desired rule. See bellow for the existing rules. | String | Yes | - |
| parameters | Comma separated parameter id list, of the parameters that are linked to this rule. | String | Yes | - |
| action | A optional action to perform when the rule is validated. Can be ignored and when not, always has a default conventioned behaviour. | ParameterRuleAction | No | DEFAULT |
Example:
public class aStage {
@Parameter(defaultValue="30")
@Rule(ruleID="exclusive", parameters="param1,param2")
Integer myIntegerParam;
@Parameter(constraints="numeric, maxvalue=100")
@Rule(ruleID="dependent", parameters="myIntegerParam", action="hide", value="1")
String myStringParam;
...
}
Rules:
See also: