Re: [rules-users] Drools Guvnor User authentication
by droolist
Verify that you have given that user permissions in the administration
module.
Here is my experience when I tried Guvnor 5.5 with JAAS...
After I got past that namespace issue, I ran into a Seam issue where user
was returning null. After searching, it seemed that was a bug in Seam
security that was included in Guvnor. So, I gave up on trying to use JAAS
and tried the authenticator. If you dont need the callback that JAAS
provides, you have the option of trying Authenticator. If you are using
tomcat, you have put your classes in the WEB-INF/classes folder. when I
tried to jar and put in the lib folder, it didnt pick up the class.
It is possible in your case that you just need to provide the user
permissions.
Hope this helps.
--
View this message in context: http://drools.46999.n3.nabble.com/Drools-Guvnor-User-authentication-tp402...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months
Drools Grid & GridNode
by Charles Moulliard
Hi,
The drools project contains Grid, GridNode interfaces + implementation into
2 different maven modules
- drools-grid-impl &
- drools-spring
but interface definitions are different
Questions:
1) Is it planned to remove interfaces from drools-spring maven module ?
2) Do we need same interfaces into 2 different maven modules (risk of
clash) ?
Regards,
--
Charles Moulliard
Apache Committer / Sr. Enterprise Architect (RedHat)
Twitter : @cmoulliard | Blog : http://cmoulliard.blogspot.com
13 years, 2 months
Dispose Session in Finally Block
by Julian Klein
I was looking at the code for StatelessKnowledgeSessionImpl and
both execute methods dispose of the wrapped StatefulKnowledgeSession. The
calls to dispose however are not in finally blocks. Should they be? If
so, I have a local update for which I can issue a pull request.
Thanks,
Julian
13 years, 2 months
Adding a priority based on enum
by André Fróes
Inside my planning a priority would be considered a soft constraing right?
I created a Enum class with 6 priority going from P1 to P6. How can I add
it to my SimpleScoreCalculator? (the lower the number is, the higher is
the priority)
For example, i have 7 workorders, each one have a requiredWorktime of 8
hours, 3 a P1, 2 P3 and the other 2 P6, and I have 4 available engineers
with 8 hours worktime each one.
At the end, this should be sorted by worktime, skill and priority.
Engineer 1 Skill ABC1, ABC2, ABC3, ABC4
Engineer 2 Skill ABC4, ABC3
Engineer 3 Skill ABC2, ABC3
Engineer 4 Skill ABC1, ABC4
Workorder 1 skill ABC1, ABC2, ABC4, P1
Workorder 2 skill ABC3, ABC4, P1
Workorder 3 skill ABC1, ABC4, P1
Workorder 4 skill ABC4, P3
Workorder 5 skill ABC3, P3
Workorder 6 skill ABC1, ABC2, ABC3, ABC4, P6
Workorder 7 skill ABC1, ABC2, ABC4, P6
at the end, the result should be
Engineer 1 - WorkOrder 1
Engineer 2 - WorkOrder 2
Engineer 4 - WorkOrder 3
Engineer 3 - WorkOrder 4
and the rest of it shouldn't be planned.
How can I manage this? Will I have to do something like that move or treat
it as a hard constraing to?
13 years, 2 months
RemoveIdentities with KnowledgeAgent
by rjr201
Hi,
I'm using a KnowledgeAgent to create a KnowledgeBase. However, I need to
turn off Identities. In previous projects (not using knowledgeAgent) I've
done:
RuleBaseConfiguration conf = new RuleBaseConfiguration();
conf.setRemoveIdentities( true );
KnowledgeBase kbase = KnowledgeBaseFactory.newKnowledgeBase(conf);
I'm sure there is a very similar approach with the KAgent, but I can't seem
work out what it is. I thought maybe something like this:
KnowledgeAgentConfiguration conf =
KnowledgeAgentFactory.newKnowledgeAgentConfiguration();
conf.setProperty("drools.removeIdentities", "true");
kagent = KnowledgeAgentFactory.newKnowledgeAgent("MyAgent", conf);
But that doesn't seem to work. Any help with this would be greatly
appreciated.
Regards,
Rich.
--
View this message in context: http://drools.46999.n3.nabble.com/RemoveIdentities-with-KnowledgeAgent-tp...
Sent from the Drools: User forum mailing list archive at Nabble.com.
13 years, 2 months