Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.tester;
- import java.util.ArrayList;
- import java.util.List;
- import com.tester.*;
- rule "ruleA"
- when
- $contract : Contract( $isTeamContract : teamContract)
- (or
- $employee : Employee ($isTeamContract == false)
- $employee : Employee ($isTeamContract == true)
- )
- then
- end
- rule "ruleB"
- extends "ruleA"
- when
- $secondsInWeek : Number( ) from accumulate(
- ShiftAssignment( $seconds : shiftDurationSeconds)
- sum($seconds)
- )
- then
- int secondsMissing = $secondsInWeek.intValue();
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement