//
// 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()) {