01: package dalma.test.exception;
02:
03: import static dalma.TimeUnit.SECONDS;
04: import dalma.Workflow;
05:
06: import java.util.Random;
07:
08: /**
09: * A sample workflow.
10: */
11: public class ConversationImpl extends Workflow {
12: @Override
13: public void run() {
14: Object o = new Object();
15: // this will cause non-serializable error
16: sleep(3, SECONDS);
17: System.out.println(o);
18: }
19: }
|