-
Bug
-
Resolution: Done
-
Minor
-
6.1.0
-
None
Description of problem:
After adding such a sentence in Guided rule with DSL, the first value is preselected and also appears in translated DRL, however it is there unquoted and without surrounding braces, that are expected after "in" operator. E.g. adding a sentence defined by:
[when]There is an Applicant with the name of
{name} whose CR is any of {rating:ENUM:Applicant.creditRating}=applicant:Applicant(name=="{name}", creditRating in
{rating})
results in:
> applicant:Applicant(name=="name", creditRating in AA)
which is incorrect. After clicking any value in the multiselect (other than AA), the DRL result is:
> applicant:Applicant(name=="name", creditRating in ( "OK" ))
Note: in an extreme case where the enumeration constraint on the creditRating field only allows a single value, it is only possible to produce a valid rule by de-selecting the value with Ctrl-MouseClick and selecting it again.
Version-Release number of selected component (if applicable):
How reproducible:
-
Steps to Reproduce:
1. Use DSL definition from description in mortgages example.
2. Add the sentence and check rule source.
Actual results:
The source contains
> applicant:Applicant(name=="name", creditRating in AA)
which is invalid.
Expected results:
The source should contain
> applicant:Applicant(name=="name", creditRating in ( "AA" ))
Additional info:
- is blocked by
-
RHBRMS-1443 Unable to select multiple enum values when DSL is used
- Verified