Bug 1268064

Summary: Any artifact update does not reflect in current business-central projects
Product: [Retired] JBoss BRMS Platform 6 Reporter: Alessandro Lazarotti <alazarot>
Component: Business CentralAssignee: manstis
Status: CLOSED EOL QA Contact: Jiri Locker <jlocker>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 6.1.0CC: kverlaen
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: 2020-03-27 19:04:57 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:
Description Flags
model sample none

Description Alessandro Lazarotti 2015-10-01 17:59:46 UTC
Description of problem:

When a fact in a jar receives an update, like an addition of a new attribute, such update is not reflected in the project.

Version-Release number of selected component (if applicable):
BRMS 6.1 Update 3

How reproducible:
Always

Steps to Reproduce:
1. Create a SNAPSHOT jar (e.g. model-0.0.1-SNAPSHOT.jar) containing a class with some attributes (e.g. Person [name, age] )
2. Add such jar to business-central repository
3. Add the jar as dependency for a business-central project
4: Create a Guided Rule and add Person to WHEN side, adding some constraints to its attributes,
5. Modify the class Person adding a new field, like address, and rebuild the jar
6. Upload it to Artifact repository
7. Remove the old dependency and add the new one to the project
8. Go to Guided Rule created previously and try to add a constraint to the new attribute "address" - the attribute will not be there.

Actual results:
New attributes added to a fact does not appear

Expected results:
When a jar is updated business-central must detect the change and show them in its editors


Additional info:
There are two possible workarounds
1) Restart the server
2) remove the old reference, try to build the project, it will fail - add the new model and build it again. 

See the item 2 above and even the step 7 mentioned earlier should not be necessary. As it is an snapshot Business-Central is supposed to use the latest version always.

Comment 2 Alessandro Lazarotti 2015-10-01 18:03:11 UTC
Created attachment 1079215 [details]
model sample