Hi all,
I am new to Drools tool. I would like to implement the Drools Technical
Rule on the data (Excel file) through Talend Studio by using Embedded Rules
under the metadata or by using tBRMS component from palette. From both ways
we tried the job.
The technical Rule that we want to implement is:
package org.sample
import java.util.ArrayList
import java.util.HashMap
import java.lang.Integer
global ArrayList list
global HashMap globalMap
declare Number
message: String
numberone: Integer
numbertwo: Integer
end
rule "numberone is equals to numbertwo"
when
n: Number(numberone == numbertwo);
then
n.setMessage("numberone is equals to numbertwo");
end
rule "numberone is greater than numbertwo"
when
n: Number(numberone > numbertwo);
then
n.setMessage("numberone is greater than numbertwo");
end
rule "numberone is less than numbertwo"
when
n: Number(numberone < numbertwo);
then
n.setMessage("numberone is less than numbertwo");
end
which contains three rules we need to select one rule in the Embedded Rule
component.
*Note: *The component from embedded Rule and tBRMS component configurations
are different.
When I am using Embedded Rules Job is executed but Records are not getting
in the output.
If I am using the tBRMS component from palette in the configuration package
path, In the class URL in place of "package" it is converted to
"packages"
when selecting the .jar file in the configuration. When executing the job it
is giving File not found Exception.
After selecting .jar If "packages" is replaced with "package" , it is
giving
java.io.IOException: Server returned HTTP response code: 401 for URL
For these issues I have attached the screen shots as follows:
http://drools.46999.n3.nabble.com/file/n3603474/Embeddedrules.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_1.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_Error_1.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_2.jpg
http://drools.46999.n3.nabble.com/file/n3603474/tBRMS_Error_2.jpg
Please help me out in this issue.
Thanks and Regards,
Lavanya.
--
View this message in context:
http://drools.46999.n3.nabble.com/Regarding-tBRMS-component-and-embedded-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.