Skip to content

Commit

Permalink
issue imixs#355
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Mar 7, 2018
1 parent f8b3b11 commit a27716b
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ public void saveModel(BPMNModel model) throws ModelException {
// first delete existing model entities
deleteModel(model.getVersion());
// store model into database
logger.info("save BPMNModel '" + model.getVersion() + "'...");
logger.finest("......save BPMNModel '" + model.getVersion() + "'...");
BPMNModel bpmnModel = (BPMNModel) model;
addModel(model);
ItemCollection modelItemCol = new ItemCollection();
Expand All @@ -294,7 +294,7 @@ public void saveModel(BPMNModel model) throws ModelException {
*/
public void deleteModel(String version) {
if (version != null) {
logger.info("delete BPMNModel '" + version + "'...");
logger.finest("......delete BPMNModel '" + version + "'...");

// first remove existing model entities
String searchTerm = "(type:\"model\" AND txtname:\"" + version + "\")";
Expand All @@ -321,8 +321,7 @@ public void deleteModel(String version) {
*/
public ItemCollection loadModelEntity(String version) {
if (version != null) {
logger.info("load BPMNModel '" + version + "'...");

long loadTime=System.currentTimeMillis();
// find model by version
String searchTerm = "(type:\"model\" AND txtname:\"" + version + "\")";
Collection<ItemCollection> col;
Expand All @@ -333,7 +332,9 @@ public ItemCollection loadModelEntity(String version) {
return null;
}
if (col != null && col.size() > 0) {
return col.iterator().next();
ItemCollection model=col.iterator().next();
logger.fine("...load BPMNModel '" + version + "' in " + (System.currentTimeMillis() - loadTime) + "ms");
return model;
}
logger.finest("......BPMNModel Entity '" + version + "' not found!");
}
Expand Down

0 comments on commit a27716b

Please sign in to comment.