Bug 1261834 - Improve separation of KieModules used by "asset validation" and "project" build
Summary: Improve separation of KieModules used by "asset validation" and "project" build
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: Business Central
Version: 6.1.0
Hardware: Unspecified
OS: Unspecified
medium
unspecified
Target Milestone: ---
: ---
Assignee: manstis
QA Contact: Jiri Locker
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-10 09:43 UTC by manstis
Modified: 2020-03-27 19:10 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:10:00 UTC
Type: Enhancement
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1202551 0 high CLOSED Test Scenario result is affected by previous XLS Decision Table validation 2021-02-22 00:41:40 UTC

Internal Links: 1202551

Description manstis 2015-09-10 09:43:06 UTC
Description of problem:

Business Central uses different instances of KieBuilder and related KieFileSystem to build KieModules for the *same* ReleaseId during "asset validation" and "project build". The separation is to support validation of (DRL) assets by KieBuilder before the User commits changes made during authoring to the main "project" KieBuilder instance.

This leads to problems when "validation" has occurred *after* a Project build as KieServices.newKieContainer(ReleaseId) resolves the KieModule from KieRepository, which in the above scenario means it is the *transient* KieModule used for validation and may lack many "project" assets.

A temporary workaround was put into 6.3.x (Community) to prevent the lookup of a KieModule from KieRepository during "project" build, but after discussion with mfusco it is considered a temporary solution.

Ideally the KieBuilder used for "asset validation" should use a transient ReleaseId (i.e. manipulate the pom.xml to have a different G, A or V, e.g. append -<userId>-<sessionId> etc and remove the transient KieModule from KieRepository after validation has been performed.

See:- 

https://github.com/droolsjbpm/kie-wb-common/pull/80

https://github.com/droolsjbpm/kie-wb-common/commit/5ccb2ae6296dee60702a593cf7aaf5e6af083ae8 

Version-Release number of selected component (if applicable):

6.3.x (Community)

How reproducible:

n/a


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