From 41f3ddd9a7c54f99db53afa4988a0dd3af6da881 Mon Sep 17 00:00:00 2001 From: Teo Mrnjavac Date: Tue, 27 Jun 2023 12:24:51 +0200 Subject: [PATCH] [occ] Special case autoBind to be pushed as bool --- occ/plugin/OccFMQCommon.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/occ/plugin/OccFMQCommon.cxx b/occ/plugin/OccFMQCommon.cxx index e55df5d3..5e3f6d15 100644 --- a/occ/plugin/OccFMQCommon.cxx +++ b/occ/plugin/OccFMQCommon.cxx @@ -100,8 +100,14 @@ std::tuple doTransition(fair: boost::split(split, key, std::bind(std::equal_to<>(), '.', std::placeholders::_1)); if (std::find(intKeys.begin(), intKeys.end(), split.back()) != intKeys.end()) { auto intValue = std::stoi(value); - m_pluginServices->SetProperty(key, intValue); - OLOG(debug) << "SetProperty(chan int) called " << key << ":" << intValue; + if (boost::ends_with(key, "autoBind")) { + auto boolValue = static_cast(intValue); + m_pluginServices->SetProperty(key, boolValue); + OLOG(debug) << "SetProperty(chan bool) called " << key << ":" << intValue; + } else { + m_pluginServices->SetProperty(key, intValue); + OLOG(debug) << "SetProperty(chan int) called " << key << ":" << intValue; + } } else { m_pluginServices->SetProperty(key, value); OLOG(debug) << "SetProperty(chan string) called " << key << ":" << value;