0 Replies Latest reply on Dec 23, 2014 3:08 PM by olgar

    having a problem with getting my drool rule to work

    olgar

      rule "Basic1"

        when

             xpathGreaterThan  "count(/OrderLineList/OrderLine/Order[@OrderType = 'PICK-UP'])", "0"

        then

             Log : "Inside_Pickup";

             Destination : "Send";

        end

       

      rule "Routing Rule to ReminderSend using XPATH" extends "Basic1"

        when

             xpathEquals  "count(/OrderLineList[(@IsPICKUPReminder)])", "1"

        then

             Log : "ReminderSend";

             Destination : "ReminderSend";

        end

       

      rule "Routing Rule to Send using XPATH" extends "Basic1"

        when

             xpathEquals  "count(/OrderLineList[(@IsPICKUPReminder)])", "0"

        then

             Log : "Send";

             Destination : "Send";

        end