Skip to content

Commit 115649a

Browse files
committed
Added backward compatibility with Parallel node executing tree
1 parent 564ca79 commit 115649a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/xml_parsing.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,14 @@ TreeNode::Ptr XMLParser::Pimpl::createNodeFromXML(const XMLElement *element,
496496
for (const XMLAttribute* att = element->FirstAttribute(); att; att = att->Next())
497497
{
498498
const std::string attribute_name = att->Name();
499+
// Backward compatibility with Parallel node
500+
// Change old port to new ones keeping the same functionality
501+
if (ID == "Parallel" && attribute_name == "threshold")
502+
{
503+
port_remap["failure_threshold"] = att->Value();
504+
port_remap["success_threshold"] = att->Value();
505+
continue;
506+
}
499507
if (attribute_name != "ID" && attribute_name != "name")
500508
{
501509
port_remap[attribute_name] = att->Value();

0 commit comments

Comments
 (0)