Skip to content

Commit

Permalink
[JBPM-10005] Add suspendUntil timer to getTimers call
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Jan 31, 2022
1 parent b19fe90 commit 2d028d7
Showing 1 changed file with 8 additions and 1 deletion.
Expand Up @@ -35,6 +35,7 @@
import org.jbpm.util.PatternConstants;
import org.jbpm.workflow.instance.NodeInstanceContainer;
import org.jbpm.workflow.instance.impl.NodeInstanceImpl;
import org.jbpm.workflow.instance.node.HumanTaskNodeInstance;
import org.jbpm.workflow.instance.node.StateBasedNodeInstance;
import org.jbpm.workflow.instance.node.TimerNodeInstance;
import org.kie.api.command.ExecutableCommand;
Expand Down Expand Up @@ -127,7 +128,13 @@ protected void processNodeInstance(TimerManager tm, NodeInstanceContainer contai
timers.add(details);
}
}


if (nodeInstance instanceof HumanTaskNodeInstance) {
HumanTaskNodeInstance htni = (HumanTaskNodeInstance) nodeInstance;
if (htni.getSuspendUntilTimerId() >= 0) {
timers.add(buildTimer(tm.getTimerMap().get(htni.getSuspendUntilTimerId())));
}
}
}

if (nodeInstance instanceof NodeInstanceContainer) {
Expand Down

0 comments on commit 2d028d7

Please sign in to comment.