[
https://issues.jboss.org/browse/DROOLS-1570?page=com.atlassian.jira.plugi...
]
Manish Java updated DROOLS-1570:
--------------------------------
Steps to Reproduce:
# Clone the Git repository from Github.
# Checkout the v5.6.0 version as {{git checkout v1.0}}.
# Run tests as {{mvn clean test}} to see everything working fine with Drools v5.6.0.
# Checkout the main line as {{git checkout master}}.
# Run tests as {{mvn clean test}} to see one of the tests failing.
was:
1. Clone the Git repository from Github.
1. Checkout the v5.6.0 version as {{git checkout v1.0}}.
1. Run tests as {{mvn clean test}} to see everything working fine with Drools v5.6.0.
1. Checkout the main line as {{git checkout master}}.
1. Run tests as {{mvn clean test}} to see one of the tests failing.
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)