planner: when gets a solution cloned?
by Michiel Vermandel
Hi,
I think a planning solution gets cloned in two different scenarios:
1) a better solution is found
2) the solver propagates from one solving phase to another.
Is this right?
If so, how do I know (inside the cloneSolution() method) if the clone is intended for a best-solution or a new working-solution?
Thanks
Michiel
-----------------
http://www.codessentials.com - Your essential software, for free!
Follow us at http://twitter.com/#!/Codessentials
13 years
Guvnor Configuration file
by IPatel
Hi all,
Somehow starting yesterday Guvnor won't start. I can see no exceptions in my
log file except that the last link it executes and gets stuck at is
following:
..."Brontes" started in 2853ms - Started 133 of 208 services <74 services
are passive or on-demand>
now i have a POC demo next week and i was wondering if guvnor has a way to
store somewhere the rules/packages i created and i can restore them. I
will install the tool again and import the rules/packages. This way I dont
have to re-create them again.
All your help will be greatly appreciated.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-Configuration-file-tp4022617.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
Guvnor JBoss 7 Authentication
by rjr201
Hi,
I'm having some problems getting user authentication working with Guvnor on
JBoss AS 7.
I have this in beans.xml:
<security:IdentityImpl>
<s:modifies/>
<security:authenticatorName>jaasAuthenticator</security:authenticatorName>
</security:IdentityImpl>
<security:jaas.JaasAuthenticator>
<s:modifies/>
<s:jaasConfigName>other</s:jaasConfigName>
</security:jaas.JaasAuthenticator>
<guvnorSecurity:RoleBasedPermissionResolver>
<s:modifies/>
<guvnorSecurity:enableRoleBasedAuthorization>true</guvnorSecurity:enableRoleBasedAuthorization>
</guvnorSecurity:RoleBasedPermissionResolver>
And I've created the following files on Guvnors class path:
roles.properties:
admin=admin
users.properties
admin=admin
This initially gave me a '401 This user has no permissions setup.' error. So
I followed this post:
http://drools.46999.n3.nabble.com/How-configure-Guvnor-5-4-JAAS-with-jbos...
And changed the /SecurityServiceImpl.java file as suggested (not sure if
this was the right thing to do or not, but it got rid of the error). However
now it gives me "incorrect username/password" regardless of what I enter.
Has anyone had any success with this, or can see where I'm going wrong? I
feel like I'm really close but can't work out this last step.
As always, thanks for any help anyone can give.
Rich.
--
View this message in context: http://drools.46999.n3.nabble.com/Guvnor-JBoss-7-Authentication-tp4022620...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years
Re: [rules-users] How to pass variables to a drools rule file?
by FrankVhh
It is looking for com.sample.Qos. Try to add the import statement
test.java.Qos somewhere on top of your file.
Regards,
Frank
penny wrote
> Hi,there.I have a class in test.java file.It looks like:
> class Qos{
> boolean S;
> boolean W;
> Qos(){
> S = true;
> W = false;
> }
> public boolean getS(){
> return S;
> }
> public boolean getW(){
> return W;
> }
> }
>
> Now I want to use the Qos class in my rule file like this:
> rule "rule1"
> ruleflow-group "myRules"
> salience 4
> when
> //conditions
> $qos:Qos(S==true && W==true);
> then
> System.out.println("rule1");
> end
>
> But here is an error.
> [Error: could not access field: com.sample.Qos.S]
> [Near : {... S == true ....}]
> ^
> [Line: 1, Column: 1]
>
> How can I do?
--
View this message in context: http://drools.46999.n3.nabble.com/How-to-pass-variables-to-a-drools-rule-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years