01: package com.tctest.rife.elements;
02:
03: import com.uwyn.rife.engine.Element;
04: import com.uwyn.rife.engine.annotations.Autolink;
05: import com.uwyn.rife.engine.annotations.Elem;
06: import com.uwyn.rife.engine.annotations.OutputProperty;
07:
08: @Elem(autolinks={@Autolink(srcExit="exit",destClass=CallAnswerExit.class)})
09: public class CallAnswer extends Element {
10: private String someData;
11:
12: @OutputProperty
13: public String getSomeData() {
14: return someData;
15: }
16:
17: public void processElement() {
18: String before = "before call";
19: String after = "after call";
20:
21: print(before + "\n" + getContinuationId() + "\n");
22: someData = "somevalue";
23: print(call("exit"));
24: print(after);
25: }
26: }
|