I start using KIE Drools Workbench and I practice in creating DRL files so I can tutor pepole that are not programmers in creating rules.
I know how to create a JAVA class within the Workbench but I need to know how to import a class I already wrote that will be part of the statement.
For example: Employer - class I create within the Workbench Employee - class I developed in eclipse and wish to import into the Workbench
when$employer:Employer(isHappy == true)thenEmployee emp = new Employee();endemp.setSalary(100);insert(emp);Any idea how can I import JAVA bean to use in KIE Drools Workbench?
Thanks!
Hi,
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/918b53ec-856c-44bc-ba3f-1733924a252d%40googlegroups.com.--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/23dc5d05-5784-4972-8e58-dd2cb25ff285%40googlegroups.com.
Config tab is on each editor; so once you've added your dependencies to the project create (for example) a new guided rule and the associated editor will have a Config tab.
For now ensure the package containing the class(es) you need are in the same package as the rule... there's additional complexity for rules/classes in differ packages but let's get the simplest case working for you first.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/2264c28a-3a8a-4a6e-b367-6a7b5cac0e63%40googlegroups.com.
OK... if you're doing a DRL/Technical Rule then you cannot get much simpler! The reason you're not seeing types that are in a different package is caused by additional filtering of types by the workbench.
Switch to the Administration Perspective and navigate to the "package name white list" which, by default, filters by the default package name created for new projects. Change the content of this file (either remove the default value or add your required package names) and save.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/66f49dac-a9dd-4f82-bfbb-4cc3aae60c52%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage+unsubscribe@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/d00a0f9a-a353-4cfa-b175-327527d996d7%40googlegroups.com.