-
1. Re: How to create a business rule task with drl file
swiderski.maciej Nov 20, 2013 2:04 PM (in response to rawan.koroni)Rawan Koroni wrote:
Hi,
I'm trying to create a new process containing a business rule task and link it with .drl file.
- The first question I want to ask is how to do it.
rule flow group attribute is the link between rules defined in del and the business rule task. There is special attribute of business rule task for this value
Rawan Koroni wrote:
- The second one is how to deploy the process (included the drl file) on JBPM Console. If the console is not completed yet, can i test the process using a unit test?
simple build and deploy it using project editor panel in jbpm console (kie workbench) and both del and bpmn2 will be deployed and ready for execution.
HTH
-
2. Re: How to create a business rule task with drl file
rawan.koroni Nov 24, 2013 4:09 AM (in response to swiderski.maciej)Thanks for your reply.
in fact i do not have much experience in using business rule task, so i will explain what i did:
first : i built a simple bpmn example
second : i added a message class , Message.java
third : i added a new rule , Rule.drl
forth: i put rowflow-group as "RFG1" in my Business Rule Task "BR1"
------------------------------------------------------------------------------------------------------
please can you tell me about any new steps i have to do to run this application using unit test in eclipse
Note: there is an error in rule.drl "unable to resolve object type 'Message' " , i tried to put Rule.drl in the same package of Message.java but clearly it did not work because the package of Rule.drl still different from the package of Message.java although they have the same name.
Best Regards
-
3. Re: How to create a business rule task with drl file
swiderski.maciej Nov 24, 2013 6:01 AM (in response to rawan.koroni)you need to add import pk.Message into del file, just after package declaration so drools will be able to find the class.
HTH
-
4. Re: How to create a business rule task with drl file
rawan.koroni Nov 24, 2013 6:43 AM (in response to swiderski.maciej) -
5. Re: How to create a business rule task with drl file
swiderski.maciej Nov 24, 2013 7:30 AM (in response to rawan.koroni)try adding ; after import pk.Message;
HTH
-
6. Re: How to create a business rule task with drl file
rawan.koroni Nov 24, 2013 7:46 AM (in response to swiderski.maciej)unfortunately i had tried it after i took the image but the same error .
-
7. Re: How to create a business rule task with drl file
swiderski.maciej Nov 24, 2013 12:49 PM (in response to rawan.koroni)could you provide complete stack trace that produces that. In addition, please double check your class path to check if you don't have any pk.Message packages there that drools somehow finds.
HTH
-
8. Re: How to create a business rule task with drl file
rawan.koroni Nov 25, 2013 1:54 AM (in response to swiderski.maciej)i tried to run the application although there are errors and it worked and gave me the result i want !!!!!
i do not know why it did that but i am happy to run business rule task finally .
thanks a lot for your replies .
Best regards