.append(((YTask) element)
.getDecompositionPrototype().getID())
.append("\">");
YTask task = (YTask) element;
for (int i = 0; i < 4; i++) {
YInternalCondition internalCondition;
if (i == 0) {
internalCondition = task.getMIActive();
}
else if (i == 1) {
internalCondition = task.getMIEntered();
}
else if (i == 2) {
internalCondition = task.getMIExecuting();
}
else {//if (i == 3)
internalCondition = task.getMIComplete();
}
if (internalCondition.containsIdentifier()) {
stateText.append("<internalCondition " + "id=\"")
.append(internalCondition.toString())
.append("\">");
List identifiers = internalCondition.getIdentifiers();
for (Iterator iterator = identifiers.iterator(); iterator.hasNext();) {
YIdentifier identifier = (YIdentifier) iterator.next();
stateText.append("<identifier>")
.append(identifier.toString())
.append("</identifier>");