proxy config for change-set schema fetch?
by Allen, Robert R
Hi All:
I'm running drools expert and guvnor on a single machine that runs
behind an authentication-required HTTP proxy to the outside world. I'm
fetching rulesets from the guvnor URL using the KnowledgeAgent. The
loading of each URL takes a consistent 3 minutes and it appears that the
delay may be from trying to fetch the xml schema which does not succeed
because the request must go to jboss thru a proxy. I get these two
messages in the log file:
(null: 1, 290): schema_reference.4: Failed to read schema document
'http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/sr
c/main/resources/change-set-1.0.0.xsd', because 1) could not find the
document; 2) the document could not be read; 3) the root element of the
document is not <xsd:schema>.
(null: 1, 290): cvc-elt.1: Cannot find the declaration of element
'change-set'.
After the delay, the parsing works correctly and the KnowledgeAgent
creates the KnowledgeBase correctly. Here is an example of the change
set being passed to the KnowledgeAgent:
<change-set xmlns='http://drools.org/drools-5.0/change-set'
xmlns:xs='http://www.w3.org/2001/XMLSchema-instance'
xs:schemaLocation='http://drools.org/drools-5.0/change-set
http://anonsvn.jboss.org/repos/labs/labs/jbossrules/trunk/drools-api/src
/main/resources/change-set-1.0.0.xsd' > <add> <resource
source='http://localhost:8080/arcotadmin/org.drools.guvnor.Guvnor/packag
e/pkg1/LATEST.drl' type='DRL' basicAuthentication='enabled'
username='usr1' password='123456' /> </add> </change-set>
Questions:
1. Can I tell KnowledgeAgent to use a local file for the schema
and thereby bypass the external lookup altogether? What would the syntax
for that look like?
2. Is there a way to provide proxy information to KnowledgeAgent
or drools expert as a whole that includes authentication credentials?
Thanks,
-Robert
12 years, 11 months
drools flow - how to crate a human task form?
by gs76pl
hi,
What is the best way of creating some UI for human tasks with an input form?
I've a sample process with a human task that should update some values in
the process. I had a look into API of a task and the only thing i can find
there is 'content' which i'm not really sure about (is it the place where
for instance HTML UI should be created?) Is there any way to create this
form with some additional actions like : claim/fail etc?
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/drools-flow-how-to-cr...
Sent from the Drools - User mailing list archive at Nabble.com.
12 years, 11 months
drools5.2 integrate with JMS
by DroolersEye
Hi, I would like to integrate JMS with drools 5.2. I have a confusion over
selecting right approach.
I noticed from the mailing list drools pipeline is depricated so I assume
that not recomended now. So ignored it than look for another option but not
using spring? when i check the user forum I not getting any right direction
insted more confusion selecting rigt tool. Can some one help me to provide
me some info about integration JMS with drools without using spring?i am
using drools5.2
thanks lot,
-----
with kind regards,
--
View this message in context: http://drools.46999.n3.nabble.com/drools5-2-integrate-with-JMS-tp3546100p...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 11 months
ProcessEventListener event order
by Carlos Villegas
Hi,
I'm testing the ProcessEventListener on a simple process and I get the
"after" events in reverse order.
For example,
Process completed : 1283915643204
Node left: 5: 1283915643268
Node triggered: 5: 1283915643268
Node left: 4: 1283915643268
Node triggered: 4: 1283915643269
Node left: 3: 1283915643269
Node triggered: 3: 1283915643270
Node left: 2: 1283915643270
Node triggered: 2: 1283915643270
Node left: 1: 1283915643270
Node triggered: 1: 1283915643271
Node left: 0: 1283915643271
Node triggered: 0: 1283915643271
Process started : 1283915643271
I'm just printing the node id and the time in milliseconds.
Is this the way is supposed to be?
I guess technically "after" could be anytime after, but if I use the
afterProcessStarted event, I get it after the whole process has
completed!, which it's not useful at all.
The "before" events work as expected I think.
I'm using Drools Flow 5.1.0.
Thanks,
Carlos
12 years, 11 months
CPU Spike creating a StatefulKnowledgeSession using OSGi
by David Conde
Good Morning,
I now have drools running on the Spring DM-Server but I am seeing a CPU
spike when creating a StatefulKnowledgeSession. I've tested this outside of
an OSGi environment and I don't see the spike. Does anyone know any settings
that I can change that might make this go away?
Thanks,
Dave
--
David Conde
CTO Calom Technologies
12 years, 11 months
Questions regarding Guvnor
by Harshit Bapna
Hello All,
Few questions:
1. What is the release date of Guvnor 5.2 ? (Couldn't find it from the site
of the documentation)
I am interested in the functionality to add the guvnor editors in
another app for rule editing. i.e. StandaloneEditorServlet
2. Which SVN TAG of the Guvnor (which has standalone editor functionality)
should I use ?
Note: On trunk I have observed that the war contains a folder *guvnor* where
as guvnor 5.1 war contained folder *org.drools.guvnor.Guvnor*
Also the web.xml in the trunk has the following url pattern <url-pattern>/*
org.drools.guvnor.Guvnor*/feed/*</url-pattern>
This url pattern would never be matched as the Guvnor.html is under
guvnor/Guvnor.html. To make it work I had to update the url patterns in the
web.xml
Is there anything that I am doing wrong ? (mvn clean install
-Dmaven.test.failure.ignore=true)
IMO, the trunk has partial changes checked in. Hence it is not stable.
Thanks
12 years, 11 months
Extracting management information from the content of the rules
by Henrique Lira
Hi,
I'm doing an evaluation of Guvnor tool, and one of the requirements that we
wish to be met is the ability to extract management reports from the content
of the rules. Let me explain better: assuming I have several rules that
define discounts for products depending on their characteristics, how can I
get, for example, which products have a discount of X%? I tried using the
search function of the Guvnor, but I found it very simple to more managerial
information like this? Is there any other functionality to generate more
complex queries?
Thanks in advance,
Henrique
--
View this message in context: http://drools.46999.n3.nabble.com/Extracting-management-information-from-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 11 months
Using hashmap in guided decision table in Guvnor
by ankitmasrani
Hi,
I am new to Drools and Guvnor and I have the following query:
1. I have uploaded a pojo model jar which has a class A containing a
hashmap<String, String> attr1.
2. Then, I created a new rule- Guided decision table.
3. And i want to define a rule lets me select a key of the hashmap defined
using the drop-down pop-up and check the corresponding value in the second
column. Then perform an action.
Example: check Key= "Name" and value="Abc". then set an output string- "Name
ok" in action.
Please provide any suggestions.
Thank You
Ankit
--
View this message in context: http://drools.46999.n3.nabble.com/Using-hashmap-in-guided-decision-table-...
Sent from the Drools: User forum mailing list archive at Nabble.com.
12 years, 11 months