GpelCondition condition = new GpelCondition(this.bpelNS, booleanExpression);
//
// If block
//
EndifNode endifNode = getEndifNode(ifNode);
GpelSequence ifSequence = createIfSequence(ifNode, endifNode, true, parentBlock);
GpelIf gpelIf = new GpelIf(this.bpelNS, condition, ifSequence);
//
// Else block
//
GpelSequence elseSequence = createIfSequence(ifNode, endifNode, false, parentBlock);
GpelElse gpelElse = new GpelElse(this.bpelNS, elseSequence);
gpelIf.setElse(gpelElse);
//
// Create global variables for endif.
//
for (Port outputPort : endifNode.getOutputPorts()) {
String variable = outputPort.getID() + OUTPUT_SUFFIX;
GpelVariable ifVar = new GpelVariable(this.process.xml().getNamespace(), variable);
XmlNamespace xsdNS = process.xml().lookupNamespaceByName(WSConstants.XSD_NS_URI);
if (null != xsdNS && xsdNS.getPrefix() != null) {
ifVar.xml().setAttributeValue("element",