Skip to content

Commit

Permalink
issue #178
Browse files Browse the repository at this point in the history
  • Loading branch information
rsoika committed Jul 27, 2016
1 parent 8cf1069 commit 5e9b35e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ public int run(ItemCollection adocumentContext, ItemCollection adocumentActivity
documentNextProcessEntity = ctx.getModelManager().getModel(aModelVersion).getTask(iNextProcessID);
} catch (ModelException e) {
// no next task defined (follow up)
return Plugin.PLUGIN_OK;
}
// in case the activity is connected to a followup activity the
// nextProcess can be null!
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,14 +112,13 @@ public int run(ItemCollection adocumentContext,
itemColNextProcess = ctx.getModelManager().getModel(aModelVersion).getTask(
iNextProcessID);
} catch (ModelException e) {
throw new PluginException(ApplicationPlugin.class.getSimpleName(), ModelException.UNDEFINED_MODEL_ENTRY, e.getMessage());

// no op -
}

// if the processEntity was not found cancel processing now!
if (itemColNextProcess == null) {
logger.warning("[ApplicationPlugin] Warning - processEntity '"
+ iNextProcessID + "' was not found in the model! ");
logger.warning("[ApplicationPlugin] Warning - Task '"
+ iNextProcessID + "' was not found in the model '" + aModelVersion + "' ");
return Plugin.PLUGIN_WARNING;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ public int run(ItemCollection adocumentContext, ItemCollection adocumentActivity
try {
documentNextProcessEntity = ctx.getModelManager().getModel(aModelVersion).getTask(iNextProcessID);
} catch (ModelException e) {
throw new PluginException(OwnerPlugin.class.getSimpleName(), ModelException.UNDEFINED_MODEL_ENTRY, e.getMessage());
// no next task defined (follow up)
return Plugin.PLUGIN_OK;
}
// in case the activity is connected to a followup activity the
// nextProcess can be null!
Expand Down

0 comments on commit 5e9b35e

Please sign in to comment.