Skip to content

Commit

Permalink
[JBPM-10078] Non-existing [SLA]... timer with session id=0 shown when…
Browse files Browse the repository at this point in the history
… using REST API to list all available timers in migrated process instance (kiegroup#2149)
  • Loading branch information
elguardian committed Aug 4, 2022
1 parent 1255d12 commit da48876
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,7 +540,7 @@ public ProcessInstance readProcessInstance(MarshallerReaderContext context) thro
if (_instance.getSlaDueDate() > 0) {
processInstance.internalSetSlaDueDate(new Date(_instance.getSlaDueDate()));
}
processInstance.internalSetSlaTimerId(_instance.getSlaTimerId());
processInstance.internalSetSlaTimerId(_instance.getSlaTimerId() > 0 ? _instance.getSlaTimerId() : -1);

long nodeInstanceCounter = _instance.getNodeInstanceCounter();
processInstance.setKnowledgeRuntime( wm.getKnowledgeRuntime() );
Expand Down Expand Up @@ -622,7 +622,8 @@ public NodeInstance readNodeInstance(MarshallerReaderContext context,
if (_node.getSlaDueDate() > 0) {
nodeInstance.internalSetSlaDueDate(new Date(_node.getSlaDueDate()));
}
nodeInstance.internalSetSlaTimerId(_node.getSlaTimerId());

nodeInstance.internalSetSlaTimerId(_node.getSlaTimerId() > 0 ? _node.getSlaTimerId() : -1) ;

switch ( _node.getContent().getType() ) {
case COMPOSITE_CONTEXT_NODE :
Expand Down

0 comments on commit da48876

Please sign in to comment.