protected Element getArrows(SVGDocument doc) {
if (subActivities != null) {
ActivityInterface prevActivity = null;
ActivityInterface activity;
String id = null;
SVGCoordinates myStartCoords = getStartIconExitArrowCoords();
// SVGCoordinates exitCoords;
org.wso2.carbon.bpel.ui.bpel2svg.SVGCoordinates entryCoords;
for (ActivityInterface subActivity : subActivities) {
activity = subActivity;
// if (prevActivity != null) {
// exitCoords = prevActivity.getExitArrowCoords();
// entryCoords = activity.getEntryArrowCoords();
// id = prevActivity.getId() + "-" + activity.getId();
// return getArrowDefinition(doc, exitCoords.getXLeft(), exitCoords.getYTop(),
// entryCoords.getXLeft(), entryCoords.getYTop(), id);
// } else {
entryCoords = activity.getExitArrowCoords();
return getArrowDefinition(doc, myStartCoords.getXLeft(), myStartCoords.getYTop(),
entryCoords.getXLeft(), entryCoords.getYTop(), id);
}
}
return null;