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:
20: public class Eingetragen extends AbstractCondition<UrlaubsAntrag> {
21: public boolean eval(UrlaubsAntrag subject)
22: throws ConditionEvaluationException {
23: /*PROTECTED REGION ID(org.osbl.demo.urlaub.process.Eingetragen.eval) ENABLED START*/
24: return subject.getEingetragen() != null;
25: /*PROTECTED REGION END*/
26: }
27: }
|