Skip to content

Commit

Permalink
fixed
Browse files Browse the repository at this point in the history
Issue #841
  • Loading branch information
rsoika committed Oct 25, 2023
1 parent 59b4df8 commit a9b470d
Showing 1 changed file with 2 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,7 @@ public class IntervalPlugin extends AbstractPlugin {
public ItemCollection run(ItemCollection adocumentContext, ItemCollection event) throws PluginException {

LocalDateTime result = null;

documentContext = adocumentContext;
// test if activity is a schedule activity...
// check if activity is scheduled
if (!"1".equals(event.getItemValueString("keyScheduledActivity"))) {
return documentContext;
}

// validate deprecated configuration via keyinterval
Set<String> fieldNames = documentContext.getAllItems().keySet();
Expand All @@ -99,13 +93,8 @@ public ItemCollection run(ItemCollection adocumentContext, ItemCollection event)
// evaluate interval configuration
ItemCollection evalItemCollection = getWorkflowService().evalWorkflowResult(event, "item", adocumentContext,
true);

if (evalItemCollection == null) {
return adocumentContext;
}

if (evalItemCollection.hasItem(EVAL_INTERVAL)) {

// We run only if an item 'inteval' is defined in the current event (issue #841)
if (evalItemCollection != null && evalItemCollection.hasItem(EVAL_INTERVAL)) {
String invervalDef = evalItemCollection.getItemValueString(EVAL_INTERVAL);

if (invervalDef.trim().isEmpty()) {
Expand Down

0 comments on commit a9b470d

Please sign in to comment.