diff --git a/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/AccessPlugin.java b/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/AccessPlugin.java index ca38638cc..d9b53e9f4 100644 --- a/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/AccessPlugin.java +++ b/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/AccessPlugin.java @@ -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! diff --git a/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/ApplicationPlugin.java b/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/ApplicationPlugin.java index 263169899..0087c9b6e 100644 --- a/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/ApplicationPlugin.java +++ b/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/ApplicationPlugin.java @@ -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; } diff --git a/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/OwnerPlugin.java b/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/OwnerPlugin.java index a6d95efce..82cce475d 100644 --- a/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/OwnerPlugin.java +++ b/imixs-workflow-engine/src/main/java/org/imixs/workflow/plugins/OwnerPlugin.java @@ -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!