Drools Server : Basic Authentication
by Ross H
Has anyone configured basic authentication on Drools Server.
I've setup the web.xml with a security constraint.
Testing with a GET on the wsdl works fine.
When I POST with a soap message, xstream throws an exception. This seems to
be because the camel route with DroolsPolicy is passing the credentials
straight through.
So it looks as though I have to configure something in the route to handle
the credentials and then pass the rest of the message through to
DroolsPolicy.
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-Server-Basic-A...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
Drools Introduction Documentation --
by Imaad Ghouri
Hi All,
I am a newbie and have just started with drools with documentation:
http://downloads.jboss.com/drools/docs/5.1.1.34858.FINAL/drools-introduct...
1). I am at section 3.4 and got the attached exception while I run the maven
command:
mvn -Declipse -Ddocumentation clean install
-DlocalEclipseDrop=/folder/jboss-drools/local-Eclipse-drop-mirror
2). I am new in the community so i appreciate if some one guide me how to
start other than drools documentation so I can start in a right fashion.
--
Regards,
Imaad Ghouri
13 years, 9 months
Decision tables - multiple params to function over multiple columns
by Travis_Smith@bnz.co.nz
Hi,
Currently I've got a consequence on a decision table that works like this:
callHelperFunction( $1, $2, $handleFromConditions);
where the first two parameters are strings, $1 being a code, $2 a
description.
which means that you get the table holding things like:
"DC X223,This is the description text which can be fairly wordy"
That works just fine!
However: For ease of maintenance, the risk analysts want the input split
over two columns, so is there any way of doing this? I'm trying to avoid
inserting a temporary fact then cleaning it up after, if possible, as I
can't see that being particularly good for performance.
Thank you,
-Trav
Travis Smith
Analyst Programmer
Development Centre
BNZ
DDI: +644 4746356 (Or Ext 76356)
CAUTION - This message may contain privileged and confidential information
intended only for the use of the addressee named above. If you are not the
intended recipient of this message you are hereby notified that any use,
dissemination, distribution or reproduction of this message is prohibited.
This email was sent by the Bank of New Zealand. You can contact us on
0800 ASK BNZ (0800 275 269). Any views expressed in this message are those
of the individual sender and may not necessarily reflect the views of Bank
of New Zealand.
13 years, 9 months
Drools flow persistence
by DECOUX Yannick
Hi,
I'm trying building a simple test case with drools flow (see in attachment).
My flow is like this : Start -> print a message -> human task -> print a message
The idea of the test is to start the flow and persist the task in the first part.
The second part resume the flow using JPAKnowledgeService.loadStatefulKnowledgeSession
My project is using h2 for tasks and processes persistence.
I'm using a custom human task handler, it basicaly persist the task using the org.drools.task.service.TaskService injected via spring quite like the WSHT implementation without all the client/server stuff
It works fine except when a want to assign actorId via a rule. To do that, I'm trying to reuse the assignment.drl and workflow_rules.drl from the drools examples. I red somewhere that i need to set 'drools.advancedProcessRuleIntegration=true' in drools.rulebase.conf to make it work (is that correct ?).
When i do that, my workflow doesn't resume and i'm getting this exception :
Caused by: java.lang.NullPointerException
at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1372)
at org.drools.common.AbstractWorkingMemory.update(AbstractWorkingMemory.java:1338)
at org.drools.workflow.instance.node.WorkItemNodeInstance.triggerCompleted(WorkItemNodeInstance.java:199)
at org.drools.workflow.instance.node.HumanTaskNodeInstance.triggerCompleted(HumanTaskNodeInstance.java:90)
at org.drools.workflow.instance.node.WorkItemNodeInstance.workItemCompleted(WorkItemNodeInstance.java:258)
at org.drools.workflow.instance.node.WorkItemNodeInstance.signalEvent(WorkItemNodeInstance.java:234)
at org.drools.workflow.instance.impl.WorkflowProcessInstanceImpl.signalEvent(WorkflowProcessInstanceImpl.java:337)
at org.drools.persistence.processinstance.JPAWorkItemManager.completeWorkItem(JPAWorkItemManager.java:99)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:69)
at org.drools.command.runtime.process.CompleteWorkItemCommand.execute(CompleteWorkItemCommand.java:34)
at org.drools.persistence.session.SingleSessionCommandService.execute(SingleSessionCommandService.java:279)
... 27 more
I've attached a simple project using maven/spring/hibernate
Am I missing something ?
What am I dong wrong ?
Thanks for your help
13 years, 9 months
Fwd: [rules-dev] Query on drools
by Esteban Aliverti
Moved to correct mailing list
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Esteban Aliverti
- Developer @ http://www.plugtree.com
- Blog @ http://ilesteban.wordpress.com
On Tue, Mar 29, 2011 at 10:12 AM, praveen p <p.praveenn(a)gmail.com> wrote:
> Hi,
>
>
>
> We need to make a decision on whether to use Jboss drools for our project,
> please help me out on this. We are planning to develop a tool which
> generates random test data based on some conditions. These conditions can be
> something like age>18<60, 6 lettered string containing only first four
> letters of an alphabet, Amount=Price*quantity. We are planning to store
> these conditions in drools rule engine and generate data based on them. The
> java application has to connect to drools, fetch the rule associated with a
> property, get back to java layer and generate some output based on these
> rules. Is this possible using drools? Please let me know the possibility and
> provide some clarity on it.
>
>
>
> Regards,
>
> Praveen.
>
> _______________________________________________
> rules-dev mailing list
> rules-dev(a)lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-dev
>
>
13 years, 9 months
Rule storage
by FrankVhh
Hi all,
This may be a stupid question, but is there a way to see your Guvnor-rules
outside Guvnor in some kind of readable file?
I noticed jackrabbit is used as a repository, so I would like to have a look
in there, but I am not able to find it in the expanded guvnor.war folder.
The version I am using is Guvnor 5.1.1, with standard configuration.
A look in the Guvnor documentation did not help me out. Feel free to burn me
if I missed it :-)
Thanks and regards,
Frank
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Rule-storage-tp274251...
Sent from the Drools - User mailing list archive at Nabble.com.
13 years, 9 months
StatefulKnowledgeSession, serialization and FactHandle question
by Laird Nelson
Hello; I'm using Drools 5.2.0-SNAPSHOT.
I have a StatefulKnowledgeSession spawned from a KnowledgeBase whose
KnowledgeBaseConfiguration is set up to use equality, not identity for (as I
understand it) testing to see whether a fact is in the base or not.
I have this verified with a (nasty) assert statement (I didn't see any other
way to get the KnowledgeBaseConfiguration out, which looks like an API
omission to me):
assert ((InternalRuleBase)((
KnowledgeBaseImpl)sks.getKnowledgeBase()).getRuleBase()).getConfiguration().getAssertBehaviour().equals(AssertBehaviour.EQUALITY);
OK, so the internal knowledge base is using equality.
I stick some facts in via insert. Then I serialize the session using all
the right classes from org.drools.marshalling. I choose the full
serialization mode.
As I understand it, this means that the knowledge base and the facts will
all be serialized. I am aware of the fact that all facts will get new
identities.
At some point in the future, I deserialize the session (successfully).
When I take the same object that I inserted, and call
statefulSession.getFactHandle(myObject), I get null back.
This is despite the fact that my object has an equals() method, and that the
equals() method is heavily unit tested (and simple).
That is, despite the fact that the KnowledgeBase is confirmed to use
equality, not identity, there does not seem to be a way to test if the
session contains a particular fact. It's like identity is still being used.
Am I overlooking something obvious?
Thanks,
Laird
13 years, 9 months
Ask for help on rule authoring
by Benson Fung
Hi,
I got the following rule problem.
The rule is like :
1. | rule "Rule1"
2. | dialect "mvel"
3. | when
4. | ad : ApplicationData( age == "null" , age.size() == 0)
5. | then
6. | ad.setReturnMsg( "age should not be null or empty" );
7. | end
where setReturnMsg is a method of ApplicationData Fact();
However, I got the validation error :
[Rule1] [ERR 101] Line 4:49 no viable alternative at input ')' in rule
"Rule1" in pattern ApplicationData
[Rule1] [ERR 102] Line 4:51 mismatched input '==' expecting ')' in
rule "Rule1" in pattern ApplicationData
Please help what the problem is.
Thanks
13 years, 9 months