[rules-users] Regarding tBRMS component and embedded Rules in talend

Mauricio Salatino salaboy at gmail.com
Wed Dec 21 05:56:07 EST 2011


That sounds like a product that is using Drools internally.
Unless you share more internal details about how drools is being
embedded we cannot help. (At least I cannot help)
You should ask them about what can be wrong with their product.

On Wed, Dec 21, 2011 at 5:31 AM, Lavanya <aouklavanyareddy at gmail.com> wrote:
> 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-Rules-in-talend-tp3603474p3603474.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users



-- 
 - CTO @ http://www.plugtree.com
 - MyJourney @ http://salaboy.wordpress.com
 - Co-Founder @ http://www.jugargentina.org
 - Co-Founder @ http://www.jbug.com.ar

 - Salatino "Salaboy" Mauricio -




More information about the rules-users mailing list