Re: [rules-users] Add some default status

2010-04-21 Thread fmetral
Thanks a lot Esteban. I've found this morning the same class that you mentionned: - JackrabbitRepositoryConfigurator - and StateItem where the state is declared I'm going to modify the source code (these two classes exactly) and I will include them in my Drools guvnor war. Thanks for your help

Re: [rules-users] Add some default status

2010-04-21 Thread Esteban Aliverti
I was digging the source code a little and I found that the repo is initialized with default data by JackrabbitRepositoryConfigurator.setupRulesRepository() inside drools-repository module. Unfortunately, there is no way to hook custom behavior there. You can always modify the source code, but you

Re: [rules-users] Add some default status

2010-04-21 Thread fmetral
Thanks Esteban for your answer. I agree with you, this solution is a little bit awful. :) When the repository is installed for the first time, the status Draft is available. So in my mind, this status may be contained in the WAR and not just in the repository. What do you think about this? I rea

Re: [rules-users] Add some default status

2010-04-20 Thread Esteban Aliverti
I don't think it is possible. The first solution that comes to my mind is to copy the respoitory along with your war file. I know it is awful. Does somebody have a better idea? On Tue, Apr 20, 2010 at 9:33 AM, fmetral wrote: > > Hi all, > > I'd like to package a drools-guvnor war that contains s

[rules-users] Add some default status

2010-04-20 Thread fmetral
Hi all, I'd like to package a drools-guvnor war that contains some default status. What I want is to create two status: - draft which is already available in Guvnor by default - Validated for rules that have been tested But I don't want to create this status by hand with UI. I'd like to have it