01: package org.concern.controller;
02:
03: public class DummySynchronousActivity extends
04: AbstractSynchronousActivity {
05: public DummySynchronousActivity() {
06: }
07:
08: public DummySynchronousActivity(String name) {
09: super (name);
10: environment.put("activity.precondition", name);
11: environment.put("activity.postcondition", "");
12: environment.put("activity.reentrant", Boolean.TRUE);
13: }
14:
15: public void execute(Object subject)
16: throws ActivityExecutionException {
17: System.out.println("execute " + getName() + " on " + subject);
18: }
19:
20: Integer dummy;
21:
22: public void setDummy(Integer dummy) {
23: this .dummy = dummy;
24: }
25:
26: public Integer getDummy() {
27: return dummy;
28: }
29: }
|