01: package de.schlund.pfixcore.example;
02:
03: import de.schlund.pfixcore.workflow.Context;
04: import de.schlund.pfixcore.workflow.StateImpl;
05: import de.schlund.pfixxml.PfixServletRequest;
06: import de.schlund.pfixxml.ResultDocument;
07:
08: /**
09: * Describe class TestState here.
10: *
11: *
12: * Created: Tue Jun 13 12:27:01 2006
13: *
14: * @author <a href="mailto:jtl@schlund.de">Jens Lautenbacher</a>
15: * @version 1.0
16: */
17: public class TestState extends StateImpl {
18:
19: public final ResultDocument getDocument(final Context context,
20: final PfixServletRequest preq) throws Exception {
21: ContextSimpleData csd = (ContextSimpleData) context
22: .getContextResourceManager()
23: .getResource(
24: "de.schlund.pfixcore.example.ContextSimpleData");
25:
26: csd.setValue("b_was_called", "true");
27: return new ResultDocument();
28: }
29:
30: }
|