01: package de.schlund.pfixcore.example;
02:
03: import de.schlund.pfixcore.workflow.Context;
04: import de.schlund.pfixcore.workflow.ContextInterceptor;
05: import de.schlund.pfixxml.PfixServletRequest;
06: import de.schlund.pfixxml.RequestParam;
07: import de.schlund.pfixxml.Variant;
08:
09: /**
10: * Describe class SampleStartIC here.
11: *
12: *
13: * Created: Fri Apr 8 12:53:30 2005
14: *
15: * @author <a href="mailto:jtl@schlund.de">Jens Lautenbacher</a>
16: * @version 1.0
17: */
18: public class SampleStartIC implements ContextInterceptor {
19: // Implementation of de.schlund.pfixcore.workflow.ContextInterceptor
20: /**
21: * Describe <code>process</code> method here.
22: *
23: * @param context a <code>Context</code> value
24: * @param pfixServletRequest a <code>PfixServletRequest</code> value
25: */
26: public final void process(final Context context,
27: final PfixServletRequest pfixServletRequest) {
28: RequestParam param = pfixServletRequest
29: .getRequestParam("SETVAR");
30: if (param != null && param.getValue() != null
31: && !param.getValue().equals("")) {
32: context.setVariant(new Variant(param.getValue()));
33: }
34: }
35: }
|