KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jbpm > bpel > xml > WaitReader


1 package org.jbpm.bpel.xml;
2
3 import org.w3c.dom.Element JavaDoc;
4
5 import org.jbpm.bpel.def.Activity;
6 import org.jbpm.bpel.def.Wait;
7 import org.jbpm.bpel.timer.def.Alarm;
8
9 /**
10  * @author Juan Cantú
11  * @version $Revision: 1.4 $ $Date: 2005/06/16 19:15:34 $
12  */

13 public class WaitReader extends ActivityReader {
14
15   protected Activity createActivity() {
16     return new Wait();
17   }
18   
19   protected void readActivity(Activity activity, Element JavaDoc element) {
20     Wait wait = (Wait) activity;
21     Alarm alarm = bpelReader.readAlarm(element, wait.getCompositeActivity());
22     wait.setAlarm( alarm );
23     alarm.setAlarmActivity( wait );
24   }
25 }
Popular Tags