The drools.session.conf file can be used to configure you application.
You shouldn't change an existing file, you should just create a new one,
and add it in a META-INF directory on your classpath. For example:
drools.workItemHandlers = CustomWorkItemHandlers.conf
Next to your drools.session.conf file, add the handlers conf file you
are referring to from this file, e.g.:
[
// Add more work item handlers here (note the comma at the end)
"Log": new
org.drools.process.instance.impl.demo.SystemOutWorkItemHandler(),
]
You can for example add these two files in the
gwt-console-server-drools.war in WEB-INF/classes/META-INF.
I'm working on an install file for the console that will include things
like this. Hope to add it to the Drools SVN any time soon, that should
make installing the gwt-console a lot easier.
Kris
Quoting nanic23 <nanic23(a)hotmail.com>:
I've deployed a ruleflow that uses a WorkItemHandler.
How can I make guvnor and gwt console aware of my WorkItemHandler?
How can I
map my handler to a particular flow and work item?
I read that you can specify something like:
drools.workItemHandlers = MyWorkItemHandlers.conf
in the drools.session.conf file.
I donât seem to find this file⦠the closest I find is
drools.defaul.rulebase.conf but specifying it in this file doesnât
seem to
work.
1. Do you know where can I declare drools.workItemHandlers =
MyWorkItemHandlers.conf?
2. How do I map the handler name to the handler class in
MyWorkItemHandlers.conf?
Is it âwork item handler nameâ = âwork item handler classâ
(e.g.
approvalWorkItemHandler = com.mydrools.ApprovalWorkItemHandler)?
I have deployed a .jar file containing my WorkItemHandler to guvnor
and gwt
console lib folder and specified the above configuration in
drools.default.rulebase.conf but gwt console keeps saying that it
didnât
find a work item handler for the process.
Any help is appreciated! Anyone that has successfully deployed a
process
using a WorkItemHandler to guvnor and run it on gwt console could you
please
let me know how you've done it?
--
View this message in context:
http://n3.nabble.com/WorkItemHandler-in-Guvnor-and-GWT-Console-tp465985p4...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
Disclaimer:
http://www.kuleuven.be/cwis/email_disclaimer.htm