Advertisement
Guest User

Drools Extension Error

a guest
Jul 30th, 2014
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.55 KB | None | 0 0
  1. package com.tester;
  2.  
  3. import java.util.ArrayList;
  4. import java.util.List;
  5.  
  6. import com.tester.*;
  7.  
  8. rule "ruleA"
  9.     when
  10.         $contract : Contract( $isTeamContract : teamContract)
  11.         (or
  12.             $employee : Employee ($isTeamContract == false)
  13.             $employee : Employee ($isTeamContract == true)
  14.         )
  15.     then
  16. end
  17.  
  18. rule "ruleB"
  19.     extends "ruleA"
  20.     when
  21.         $secondsInWeek : Number( ) from accumulate(
  22.            ShiftAssignment( $seconds : shiftDurationSeconds)
  23.             sum($seconds)
  24.         )
  25.  
  26.     then
  27.         int secondsMissing = $secondsInWeek.intValue();
  28. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement