All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.kie.integrationtest.spring.order.drl Maven / Gradle / Ivy

There is a newer version: 7.74.1.Final
Show newest version
package org.kie.integrationtest.spring;

import java.util.Set;

rule "consignment"
  when
    $errors: Set()
    $order: Order(type.equals(OrderType.CONSIGNMENT) && buyer.equals(seller))
  then
    $errors.add("A party may not consign to itself.");
end

rule "sale"
  when
    $errors: Set()
    $order: Order(type.equals(OrderType.SALE) && buyer.equals(seller))
  then
    $errors.add("A party may not sell to itself.");
end

rule "transfer"
  when
    $errors: Set()
    $order: Order(type.equals(OrderType.TRANSFER) && !buyer.equals(seller))
  then
    $errors.add("A party may only transfer to itself.");
end




© 2015 - 2025 Weber Informatics LLC | Privacy Policy