git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@7480 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
526ec9b66e
commit
6d17dca93b
|
@ -337,7 +337,10 @@ public class ModelerService {
|
||||||
}
|
}
|
||||||
|
|
||||||
DBInterface.InsertInto("VRERELATEDMETADATAFORMAT", values);
|
DBInterface.InsertInto("VRERELATEDMETADATAFORMAT", values);
|
||||||
}catch(Exception e){throw new GCUBEFault(e);}
|
}catch(Exception e){
|
||||||
|
throw new GCUBEFault(e);
|
||||||
|
e.printStackTrace();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -316,15 +316,15 @@ public class XMLUtil {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ResultSet csRes=DBInterface.queryDB("select * from cs;");
|
ResultSet csRes=DBInterface.queryDB("select * from cs;");
|
||||||
boolean notEntered= true;
|
|
||||||
|
|
||||||
StringBuilder temp= new StringBuilder();
|
|
||||||
temp.append("<CS id=\"-1\" name=\"Workflows\" ");
|
|
||||||
//if(selectedFunct.contains(res.getInt(1))) temp+="selected=\"true\">";
|
|
||||||
//else
|
|
||||||
temp.append("selected=\"false\">");
|
|
||||||
temp.append("<CSDescription>This class of functions contains compound functions defined by aggregating existing functions in structured workflows as to deliver advanced features.</CSDescription>");
|
|
||||||
if (csRes.next()){
|
if (csRes.next()){
|
||||||
|
|
||||||
|
StringBuilder temp= new StringBuilder();
|
||||||
|
temp.append("<CS id=\"-1\" name=\"Workflows\" ");
|
||||||
|
//if(selectedFunct.contains(res.getInt(1))) temp+="selected=\"true\">";
|
||||||
|
//else
|
||||||
|
temp.append("selected=\"false\">");
|
||||||
|
temp.append("<CSDescription>This class of functions contains compound functions defined by aggregating existing functions in structured workflows as to deliver advanced features.</CSDescription>");
|
||||||
|
|
||||||
do{
|
do{
|
||||||
temp.append("<child><CS id=\"");
|
temp.append("<child><CS id=\"");
|
||||||
temp.append(csRes.getString(1));
|
temp.append(csRes.getString(1));
|
||||||
|
@ -337,12 +337,13 @@ public class XMLUtil {
|
||||||
temp.append(csRes.getString(3));
|
temp.append(csRes.getString(3));
|
||||||
temp.append("</CSDescription>");
|
temp.append("</CSDescription>");
|
||||||
temp.append("</CS></child>");
|
temp.append("</CS></child>");
|
||||||
|
|
||||||
}while (csRes.next());
|
}while (csRes.next());
|
||||||
|
temp.append("</CS>");
|
||||||
|
toReturn.append(temp);
|
||||||
|
|
||||||
}
|
}
|
||||||
temp.append("</CS>");
|
|
||||||
toReturn.append(temp);
|
|
||||||
|
|
||||||
|
|
||||||
} catch (SQLException e) {
|
} catch (SQLException e) {
|
||||||
logger.error("VDLModelService: DB error retreiving CS");
|
logger.error("VDLModelService: DB error retreiving CS");
|
||||||
|
|
Loading…
Reference in New Issue