return activityElement;
}
protected Element invoke2XML(Activity activity) {
Invoke invoke = (Invoke)activity;
Element activityElement = createBPELElement("invoke");
if (invoke.getPartnerLink() != null)
activityElement.setAttribute("partnerLink", invoke.getPartnerLink().getName());
if (invoke.getPortType() != null)
activityElement.setAttribute("portType", bpelNamespacePrefixManager.qNameToString(invoke, invoke.getPortType().getQName()));
if (invoke.getOperation() != null)
activityElement.setAttribute("operation", getOperationSignature(invoke.getOperation()));
if (invoke.getInputVariable() != null)
activityElement.setAttribute("inputVariable", invoke.getInputVariable().getName());
if (invoke.getOutputVariable() != null)
activityElement.setAttribute("outputVariable", invoke.getOutputVariable().getName());
if (invoke.getCorrelations() != null)
activityElement.appendChild(correlations2XML(invoke.getCorrelations()));
FaultHandler faultHandler = invoke.getFaultHandler();
if (faultHandler != null) {
faultHandler2XML(activityElement, faultHandler);
}
if (invoke.getCompensationHandler() != null)
activityElement.appendChild(compensationHandler2XML(invoke.getCompensationHandler()));
Iterator it = invoke.getFromPart().iterator();
while (it.hasNext()) {
FromPart fromPart = (FromPart)it.next();
activityElement.appendChild(fromPart2XML(fromPart));
}
it = invoke.getToPart().iterator();
while (it.hasNext()) {
ToPart toPart = (ToPart)it.next();
activityElement.appendChild(toPart2XML(toPart));
}