Bug 768441 - Guided editor: improve regex checking for DSL sentence parameters
Summary: Guided editor: improve regex checking for DSL sentence parameters
Keywords:
Status: NEW
Alias: None
Product: JBoss Enterprise BRMS Platform 5
Classification: JBoss
Component: User Interface
Version: BRMS 5.3.0.GA
Hardware: Unspecified
OS: Unspecified
unspecified
medium
Target Milestone: ---
: ---
Assignee: Nobody
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-16 16:43 UTC by Jiri Locker
Modified: 2021-04-09 12:48 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Enhancement


Attachments (Terms of Use)

Description Jiri Locker 2011-12-16 16:43:34 UTC
Description of problem:
First, if I enter an incorrect value, I get an alert which doesn't say anything about the pattern the value must match. So I need to open the DSL configuration and look up the pattern. It would be very helpful if the pattern was displayed in-place. The best would be an indicator next to the field, updating it's state as you type (similar to password strength indicator used when changing password of some online account).

Second, after the unsuccessful pattern-match check, the last change to the field value is discarded. This can be annoying. Imagine there's a regex-constrained input for phone number: you type a long number and if you make a mistake, the whole value is lost and you have to retype it completely.

Version-Release number of selected component (if applicable):
BRMS 5.3.0.*

How reproducible:


Steps to Reproduce:
1. import mortgage sample repository
2. open any rule and add the "When the ages is less than {num}" sentence
3. experiment with the input for "num" parameter
  
Actual results:


Expected results:
If the value does not match,
- the regex pattern should be displayed
- no changes should be made to the input

Additional info:


Note You need to log in before you can comment on or make changes to this bug.