org.enhydra.shark.xpdl.elements.Tools tolls = implt.getTools();
ArrayList al = tolls.toElements();
tools = al.iterator();
} catch (Exception e) {
e.printStackTrace();
throw new BaseException(e);
}
while (tools.hasNext()) {
Tool tool = (Tool)tools.next();
cus.info("Activity"+activity.toString()+" - Executing tool [id="+tool.getId()+"]");
// implement me
/*if (tool.get("Type").toValue().toString().equals("APPLICATION")) {
} else {*/
try {
invokeApplication(tool);
// if some application is not executed, throw an exception
} catch (Throwable ex) {
cus.error("Activity"+activity.toString()+" - failed to execute tool [id="+tool.getId()+"]");
if (ex instanceof ToolAgentGeneralException) {
throw (ToolAgentGeneralException)ex;
} else {
throw new BaseException(ex);
}
}
//}
}
}