For completeness, just a quick note for others who may find themselves here. I spoke with
Mike briefly via IRC and the issue appeared to be in getting the files on the classpath
correctly. This was ultimately the same thing that I went up against, so iIf you're
not sure how to get that wired up, an example follows. I'm certainly far from novice,
so any recommendations/improvements are welcome.
Start a new Drools project (you will see two packages already on the classpath -
src/main/java & src/main/rules )
Right-click the project name in Package Explorer and select New > Source Folder
Name the new folder "src/main/resources" in the popup
Right-click the new source folder and select New > Folder and call it
"META-INF" in the popup
Place your drools.rulebase.conf and custom definitions .conf file into the META-INF folder
Restart Eclipse and open a .rf file - you should now see your custom work items in place
Jeremy
----- Original Message -----
From: "Jeremy Ary" <jary(a)franklinamerican.com>
To: "Rules Users List" <rules-users(a)lists.jboss.org>
Sent: Monday, September 21, 2009 11:46:30 AM GMT -06:00 US/Canada Central
Subject: Re: [rules-users] Using work items in the Eclipse ruleflow editor
Mike,
I ran into a similar issue when I began working with ruleflows a few weeks ago. Some of
this may not be necessary and it's certainly not all causal, but this was what I noted
when working my issue out:
1) If you're working in JBoss Dev Studio, it's possible that you have a conflict
between the code you added as a runtime and what's already there, so try the process
with a fresh install of eclipse
2) Ensure that any projects you currently have open do not have build/lib/classpath issues
(I had the drools projects checked out and open and build errors caused unnecessary
complications for me)
3) Be sure that your project has a META-INF on the classpath and that it's set up
correctly
4) Place your drools.rulebase.conf & custom definitions .conf that it looks for are
both in your META-INF under resources (src/main/resources/META-INF)
5) Once you're sure this much is correct, give Eclipse a restart - my project did not
pick up my custom WI's until I restarted
If you're still having issues, I'll be on the IRC channel for the next 5 hours or
so as jary - feel free to reply here or look me up there.
(well, I'm heading to lunch very soon, so back in around an hour)
Jeremy
----- Original Message -----
From: "Mike Gill" <mgill(a)modusoperandi.com>
To: rules-users(a)lists.jboss.org
Sent: Monday, September 21, 2009 11:27:46 AM GMT -06:00 US/Canada Central
Subject: [rules-users] Using work items in the Eclipse ruleflow editor
I am using Eclipse to build my Drools rulefow file. I am trying to add custom work items,
but I cannot seem to get anything (other than Email and Log) to show up in my Work Items
palette.
Does anyone know how to get the existing work items (such as FileFinder or Exec) to show
up on the palette in eclipse?
Eventually I will need to add custom work items to the flow, so this is make-or-break
Drools functionality for my team.
In pursuit of a solution to this I have combed the documentation, this mailing list
archive, as well as endless Google results to no avail. Any help would be very valuable!
Thanks,
Mike
_______________________________________________ rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
_______________________________________________ rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users