Condition to check whether a value is in a list

Description

Scenario: user input, which should be validated against a list of allowed values.

Example:

The condition will evaluate as true, if the <value> is contained in the <list>.
The <list>-element could have the following attributes:

  • separator - the character which separates values in the list (default ",")

  • ignoreWhitespace - ignore whitespace around the values in list (default "true")

  • ignoreCase - compare value case insensitive (default "false")

Environment

None

Activity

Show:
René Krell
May 18, 2016, 10:30 AM

Example of usage after implementing this feature to the "contains" condition:

There is one additional pro: In this case you could directly use the regex handling of it.

This is just a suggestion, but I still don't see an argument against it.
Nevertheless, if you prepared an implementation of a separate condition it is ok for me.

René Krell
June 14, 2016, 2:39 PM

Again, no problem if you want to create a separate condition for it. My notes have been meant as additional ideas, not more.

Tom Helpstone
June 16, 2016, 1:52 PM

No, I aggree to implement it into Contains-Condition. It will be more clearly.
(This is one motivation, why I've spent some time on fixing the contains-condition first:
IZPACK-1405, IZPACK-1405, IZPACK-1407, IZPACK-1408, ).

Your suggestion from may 18th is good. I'll implement this, but I'll need a free time slot.

René Krell
June 24, 2016, 9:16 PM

Ok, great.
In this case I'd move this out of this sprint for one of the next releases.

René Krell
March 13, 2017, 2:31 PM

Flag added

Candidate for the next bug fix release after 5.1.0.

Flagged

Assignee

Tom Helpstone

Reporter

Tom Helpstone

Impact

None

Components

Sprint

None

Affects versions

Priority

Low
Configure