List postNodes = aNode.getPostNodeDepes();
if (postNodes != null && postNodes.size() > 0) {
for (Iterator<NodeDenpendency> itd = postNodes.iterator(); itd
.hasNext();) {
NodeDenpendency nd = itd.next();
//这其实有问题
if(nd.getPostNode()==null){
System.out.println("the dependency has not postnode::" + nd.getPostNode());
continue;
}
String aLineStr = "<transition id='" + nd.getObjUid()
+ "' from='" + nd.getPreNode().getObjUid()
+ "' to='" + nd.getPostNode().getObjUid();
if (nd.getCondition() != null) {
aLineStr = aLineStr
+ "' condition='"
+ nd.getCondition().replace("&", "&")
.replace(">", ">").replace("<",
"<").replace("'", "'")
.replace("\"", """);
}
if (nd.getShowValue() != null) {
aLineStr = aLineStr + "' showvalue='"
+ nd.getShowValue();
}
aLineStr = aLineStr + "'/>\n";
strFlowList.append(aLineStr);