Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 768441

Summary: Guided editor: improve regex checking for DSL sentence parameters
Product: [JBoss] JBoss Enterprise BRMS Platform 5 Reporter: Jiri Locker <jlocker>
Component: User InterfaceAssignee: Nobody <nobody>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: unspecified    
Version: BRMS 5.3.0.GA   
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2025-02-10 03:14:32 UTC Type: Enhancement
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

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:

Comment 4 Red Hat Bugzilla 2025-02-10 03:14:32 UTC
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.