01: package org.osbl.demo.urlaub.process;
02:
03: import org.concern.controller.ActivityExecutionException;
04: import org.concern.library.generic.FormClassNameActivity;
05: import org.osbl.demo.urlaub.model.UrlaubsAntrag;
06:
07: /**
08: * @author hengels
09: * @version $Revision$
10: */
11: public class Genehmigen extends FormClassNameActivity<UrlaubsAntrag> {
12: public void enlist(UrlaubsAntrag subject)
13: throws ActivityExecutionException {
14: /*PROTECTED REGION ID(org.osbl.demo.urlaub.process.Genehmigen.enlist) ENABLED START*/
15: try {
16: System.out.println("enlist "
17: + controller.getLoader().idOf(subject));
18: } catch (Exception e) {
19: e.printStackTrace();
20: }
21: /*PROTECTED REGION END*/
22: }
23:
24: public void delist(UrlaubsAntrag subject)
25: throws ActivityExecutionException {
26: /*PROTECTED REGION ID(org.osbl.demo.urlaub.process.Genehmigen.delist) ENABLED START*/
27: try {
28: System.out.println("delist "
29: + controller.getLoader().idOf(subject));
30: } catch (Exception e) {
31: e.printStackTrace();
32: }
33: /*PROTECTED REGION END*/
34: }
35:
36: public void assign(UrlaubsAntrag subject, String assignee, int level) {
37: try {
38: System.out.println("assign "
39: + controller.getLoader().idOf(subject) + " to "
40: + assignee + " (" + level + ")");
41: } catch (Exception e) {
42: e.printStackTrace();
43: }
44: }
45:
46: public void unassign(UrlaubsAntrag subject, String assignee,
47: int level) {
48: try {
49: System.out.println("unassign "
50: + controller.getLoader().idOf(subject) + " to "
51: + assignee + " (" + level + ")");
52: } catch (Exception e) {
53: e.printStackTrace();
54: }
55: }
56: }
|