[jboss-jira] [JBoss JIRA] (DROOLS-1570) Rule stopped working after upgrading from 5.6.0 to 6.5.0

Mario Fusco (JIRA) issues at jboss.org
Mon May 22 11:06:00 EDT 2017


     [ https://issues.jboss.org/browse/DROOLS-1570?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-1570.
---------------------------------
    Resolution: Duplicate Issue


Duplicated by https://issues.jboss.org/browse/DROOLS-1571

> Rule stopped working after upgrading from 5.6.0 to 6.5.0
> --------------------------------------------------------
>
>                 Key: DROOLS-1570
>                 URL: https://issues.jboss.org/browse/DROOLS-1570
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 6.5.0.Final
>            Reporter: Manish Java
>            Assignee: Mario Fusco
>
> I have the following POJO:
> {code:java}
> package org.example.domain.purchase;
> public class Order {
>   private OrderType type;
> }
> {code}
> and the following rules:
> {code:java}
> package org.example.domain.purchase;
> rule "consignment"
>   when
>     $order: Order(type.equals(OrderType.CONSIGNMENT))
>   then
>     System.out.println("Processing consignment order.");
> end
> rule "sale"
>   when
>     $order: Order(type.equals(OrderType.SALE))
>   then
>     System.out.println("Processing sale order.");
> end
> rule "transfer"
>   when
>     $order: Order(type.equals(OrderType.TRANSFER))
>   then
>     System.out.println("Processing transfer order.");
> end
> {code}
> These rules work fine with Drools v5.6.0 but do not fire after upgrading to v6.5.0. Even the following simple rule does not fire:
> {code:java}
> package org.example.domain.purchase;
> rule "order"
>   when
>     $order: Order()
>   then
>     System.out.println("Processing an order.")
> end
> {code}
> A sample project is available on [Github|https://github.com/manish-in-java/spring-drools-validation].



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list