Okay, I found away to get the decision tables back under the package -> business rule assets view.  If I copy the JackRabbit repository configuration folder from the other system that the repository exported from everything works.  So, it looks like the piece that links the package to the assets is not stored in the database but on the file system. I have configured everything that could in the JackRabbit repository.xml and workspace.xml to use a JNDI datasource.  The only items that I did not do this with are the lucene search indexes.



-----Original Message-----
From: guyt1122@aim.com
To: rules-users@lists.jboss.org
Sent: Fri, 20 Feb 2009 11:39 am
Subject: Re: [rules-users] Problem with viewing the Business Rule Assets under the Rules Package in Drools Guvnor

Hi Toni,

Thank you for the response.

I have setup one user with administrator set to true and has-package-premissions set to true. The component.xml file contains the following for the authentication piece:

    <!-- SECURITY IDENTITY CONFIGURATION -->
    <security:identity authenticate-method="#{defaultAuthenticator.authenticate}"/>
    <!-- security:role-based-permission-resolver enable-role-based-authorization="true"/-->

When logging into the drools guvnor I'm not supplying the credentials and I'm just clicking the "ok" button to by-pass.  The repository was created on a different system and was exported using "dbunit" ant task and imported into my environment again using "dbunit" ant task.  The version of dbunit I using is version 2.1.  The "decision tables" are visible from the package from the other system. Note, the other system has the exact same JackRabbit repository.xml configuration file and workspace.xml that resides under the repo folder on disk. What I was expected, based on the repo configurations, that the only differences between the other system repo folder and mine would be the lucene indexes.  I'm currently suspecting an issue with the repo journal entry that is used for clustered environments.  Currently, both systems are standalone app servers not running in a the clustered mode.  I configured the journal entry node because I was concerned tha! t if the repo journal entry node was not configured initially and I do decide to use a clustered environment that adding the node at that time would break the repository.

The Repository consists of the following tables:

REP_FSENTRY
REP_VER_FSENTRY
REP_VER_NODE
REP_VER_PROP
REP_VER_REFS
REP_VER_BINVAL
REP_WSP_DEFAULT_FSENTRY
REP_WSP_DEFAULT_NODE
REP_WSP_DEFAULT_PROP
REP_WSP_DEFAULT_REFS
REP_WSP_DEFAULT_BINVAL
REP_NODE1_JOURNAL
REP_NODE1_GLOBAL_REVISION

I have to make a correction to something I mention in my previous e-mail; The "more info" button and "additional  information" mentioned in my previous message is on the right hand side of the decision table, instead of the left hand side. 

Thanks,
GuyT


-----Original Message-----
From: Toni Rikkola <trikkola@redhat.com>
To: Rules Users List <rules-users@lists.jboss.org>
Sent: Fri, 20 Feb 2009 2:58 am
Subject: Re: [rules-users] Problem with viewing the Business Rule Assets under the Rules Package in Drools Guvnor

Hi, 
 
Do you have any user permissions set? It is possible that something is not permitting you to see it. In that case this might be a bug, because there is a way to get around it. 
 
In the next Drools release the asset should also be visible in archives after you have archived the package. 
 
Toni Rikkola 
 
guyt1122@aim.com wrote: 
> Hello, 

> I have noticed a strange behavior with the Drools Guvnor where I can > not see any of my web guided decision table from the Rules Package > "Business Rule Asset" view. I can navigate to this decision table > using the "Assets View" and when I click on the "more info" button the > addition information on the left hand side of the decision table > clearly shows that the asset belongs to the expected package that I > can not see it from. I have tried to archive the decision table and > it does not show up in the archives. I have tried changing the > package name on the asset and then I tried to navigate to the asset > from the other package, I still can not see it. Note, the package > somehow gets disconnects from the package after a restart the app > server. The other strange behavior is that I can make changes to the > decision table and then rebuild the packages and the changes show in > the package source. I just can not see the decision table by from the > package... 

> Note, I have configured JackRabbit to store the repository in a > database along with a journal node for clustering. 

> Environment Details: 
> + App Server - JBoss 4.0.3.sp1 
> + Drools 5.0M5 
> + Database - Microsoft Sql Server 
> + JackRabbit Repo - Configured to use a Jndi data source configured in > JBoss. 

> Any advise would be appreciated. 

> Thanks, 
> -GuyT1122 

> ------------------------------------------------------------------------ 
> *A Good Credit Score is 700 or Above. See yours in just 2 easy steps! > <http://pr.atwola.com/promoclk/100126575x1218822736x1201267884/aol?redir=http:%2F%2Fwww.freecreditreport.com%2Fpm%2Fdefault.aspx%3Fsc%3D668072%26hmpgID%3D62%26bcd%3DfebemailfooterNO62>*
> ------------------------------------------------------------------------ 

> _______________________________________________ 
> rules-users mailing list 
> rules-users@lists.jboss.org 
> https://lists.jboss.org/mailman/listinfo/rules-users 
>  
_______________________________________________ 
rules-users mailing list 
rules-users@lists.jboss.org 
https://lists.jboss.org/mailman/listinfo/rules-users 
_______________________________________________

rules-users mailing list

rules-users@lists.jboss.org

https://lists.jboss.org/mailman/listinfo/rules-users