Bug 1112278
| Summary: | Rule re-opens with one of the field type changed from String to Integer in BRMS 6.0.1 | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Retired] JBoss BRMS Platform 6 | Reporter: | Amana <ajuricic> | ||||||||
| Component: | Business Central | Assignee: | manstis | ||||||||
| Status: | CLOSED EOL | QA Contact: | Lukáš Petrovický <lpetrovi> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | high | ||||||||||
| Version: | 6.0.1 | CC: | kverlaen, rrajasek | ||||||||
| Target Milestone: | DR4 | ||||||||||
| Target Release: | 6.1.0 | ||||||||||
| Hardware: | Unspecified | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | |||||||||||
| Fixed In Version: | Doc Type: | Bug Fix | |||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2020-03-27 20:07:11 UTC | Type: | Bug | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Embargoed: | |||||||||||
| Attachments: |
|
||||||||||
Created attachment 911463 [details]
before_String.png
Created attachment 911464 [details]
after_Integer.png
Verified with ER2. |
Created attachment 911462 [details] newModel.jar Description of problem: In THEN part of a rule I am calling a method on my output object. This method takes two arguments Integer and a String. After creating the rule and saving it when I re-open that rule method call in THEN part shows both the arguments as Integer. Though DRL is still fine but rule shown in UI is not correct. Please see before_String.png and after_Integer.png attached. Version-Release number of selected component (if applicable): BRMS 6.0.1 GA How reproducible: Always Steps to Reproduce: 1. Create a fact model (a custom class) 'TestClass' with following method signature in it : public void testFunction(Integer x, String y). This method takes 2 arguments Integer and a String (or use newModel.jar attached); 2. Go to business-central and create a guided rule and import this fact model 'TestClass'; 3. In WHEN part of the rule check if there is an instance of 'TestClass' (i.e. testClass : TestClass( )); 4. In THEN part of the rule, invoke the 'testFunction' method of the class, testClass.testFunction(1000, "test"); 5. Validate, Save this rule and close it. Actual results: When we re-open the rule in UI it shows both argument as Integer only. Expected results: It should show the correct argument type. Additional info: Workaround: Although "String" field changes to "Integer" type after saving, it is still possible to input String type into the box if using "". If you try to add a int value without "", you will get an error.