Element activityElement = createBPELElement("pick");
if (((Pick)activity).isSetCreateInstance()) {
activityElement.setAttribute("createInstance", BPELUtils.boolean2XML(((Pick)activity).getCreateInstance()));
}
for (Iterator it = ((Pick)activity).getMessages().iterator(); it.hasNext(); ) {
OnMessage onMsg = (OnMessage)it.next();
activityElement.appendChild(onMessage2XML(onMsg));
}
for (Iterator it = ((Pick)activity).getAlarm().iterator(); it.hasNext(); ) {
OnAlarm onAlarm = (OnAlarm)it.next();
activityElement.appendChild(onAlarm2XML(onAlarm));