01: /*
02: *
03: * (c) Copyright 2004 - 2007 osbl development team.
04: *
05: * This file is part of the osbl (http://osbl.wilken.de).
06: *
07: * the osbl is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.osbl.demo.urlaub.process;
15:
16: import org.concern.controller.AbstractCondition;
17: import org.concern.controller.ConditionEvaluationException;
18: import org.osbl.demo.urlaub.model.UrlaubsAntrag;
19: import org.osbl.demo.urlaub.model.Genehmigung;
20:
21: public class Abgelehnt extends AbstractCondition<UrlaubsAntrag> {
22: public boolean eval(UrlaubsAntrag subject)
23: throws ConditionEvaluationException {
24: /*PROTECTED REGION ID(org.osbl.demo.urlaub.process.Abgelehnt.eval) ENABLED START*/
25: return subject.getGenehmigung() == Genehmigung.VERWEHRT;
26: /*PROTECTED REGION END*/
27: }
28: }
|