Hide Forgot
Steps to Reproduce: Example of the rule: declare Fact field: String factname: String end rule "Rule1" dialect "mvel" when $f : Fact( factname == "Alessandro" ) then System.out.println("something"); $f.setField( Lazarotti" ); update( $f ); end To configure the rule attributes by package, in guvnor: For settings in the package level: 1) In Guvnor, click on the package 2) In Configuration, click on Advanced View 3) Type in textarea of "Configuration" your setup, like: no-loop true 4) Save and validate configuration 5) Create snapshot ... 6) Look "Show package source URL", you should see the package with your configuration: 1. | package ale1 2. | no-loop true Although the source seems correct, the agent will ignore the attributes on package level. Workaround: Workaround Exists Workaround Description: The bug is the binary package created and provided in an URL by Guvnor and serialized to KnowledgeAgent in the client side. As workaround, you must change in client the URL that points to the binary to another that points to the DRL, provided by Guvnor. For example: (change-set.xml in client side) <resource source="http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST" type="PKG"/> Should be changed to: <resource source="http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST.drl" type="DRL"/> securitylevel_name: Public When defined rule attributes in package level using Guvnor, the same is ignored by agent
Case ref: https://c.na7.visual.force.com/apex/Case_View?id=500A0000004Seu3IAC&sfdc.override=1
Link: Added: This issue is related to GUVNOR-1104
Workaround Description: Removed: declare attributes in rule level Added: The bug is the binary package created and provided in an URL by Guvnor and serialized to KnowledgeAgent in the client side. As workaround, you must change in client the URL that points to the binary to another that points to the DRL, provided by Guvnor. For example: (change-set.xml in client side) <change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance' xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' > <add> <resource source='http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST' type="PKG"/> </add> </change-set> Should be changed to: <change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance' xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' > <add> <resource source='http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST.drl' type="DRL"/> </add> </change-set>
Workaround Description: Removed: The bug is the binary package created and provided in an URL by Guvnor and serialized to KnowledgeAgent in the client side. As workaround, you must change in client the URL that points to the binary to another that points to the DRL, provided by Guvnor. For example: (change-set.xml in client side) <change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance' xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' > <add> <resource source='http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST' type="PKG"/> </add> </change-set> Should be changed to: <change-set xmlns='http://drools.org/drools-5.0/change-set' xmlns:xs='http://www.w3.org/2001/XMLSchema-instance' xs:schemaLocation='http://drools.org/drools-5.0/change-set http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src/main/resources/change-set-1.0.0.xsd' > <add> <resource source='http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST.drl' type="DRL"/> </add> </change-set> Added: The bug is the binary package created and provided in an URL by Guvnor and serialized to KnowledgeAgent in the client side. As workaround, you must change in client the URL that points to the binary to another that points to the DRL, provided by Guvnor. For example: (change-set.xml in client side) <resource source="http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST" type="PKG"/> Should be changed to: <resource source="http://localhost:8080/jboss-brms/org.drools.guvnor.Guvnor/package/case00371066/LATEST.drl" type="DRL"/>
Hi Tihomir, You resolved this in BRMS-454, please provide consequence, cause, fix, and result for the release notes.
Technical note added. If any revisions are required, please edit the "Technical Notes" field accordingly. All revisions will be proofread by the Engineering Content Services team. New Contents: <remark>NeedInfo from Tihomir - Please state how this issue was resolved.</remark></para><para>Rule attributes declared at the package level with Guvnor were being ignored by the knowledgeAgent.