Salome HOME
Roll back for the keepgoing feature.
[modules/yacs.git] / src / engine / ForEachLoop.cxx
index d722b03694575259500acf8d700dd8d62c3befda..838bfb338fb4c6e00c5b4bc58598214db93a10a0 100644 (file)
@@ -882,14 +882,13 @@ YACS::Event ForEachLoop::updateStateForFinalizeNodeOnFinishedEventFrom(Node *nod
     return YACS::NOEVENT;
 }
 
-YACS::Event ForEachLoop::updateStateOnFailedEventFrom(Node *node)
+YACS::Event ForEachLoop::updateStateOnFailedEventFrom(Node *node, const Executor *execInst)
 {
   unsigned int id;
   DynParaLoop::TypeOfNode ton(getIdentityOfNotifyerNode(node,id));
-  // TODO: deal with keepgoing
-  // if(ton!=WORK_NODE || !execInst->getKeepGoingProperty())
-  if(ton!=WORK_NODE )
-    return DynParaLoop::updateStateOnFailedEventFrom(node);
+  // TODO: deal with keepgoing without the dependency to Executor
+  if(ton!=WORK_NODE || !execInst->getKeepGoingProperty())
+    return DynParaLoop::updateStateOnFailedEventFrom(node,execInst);
   else
     {
       _failedCounter++;