From 0232fe907bf4e97260aab27228d543bf58415ae2 Mon Sep 17 00:00:00 2001 From: anjanaw Date: Thu, 7 Mar 2024 09:58:55 +0000 Subject: [PATCH 1/4] Revert "testing modifications for bosch use case" This reverts commit 5dd56d6a5f38b3c9b37bbd12fa6ad529f537dc77. --- business/log.py | 1 - 1 file changed, 1 deletion(-) diff --git a/business/log.py b/business/log.py index 40688b7..a72bcf1 100644 --- a/business/log.py +++ b/business/log.py @@ -77,7 +77,6 @@ def json_execution(self, _node, _exec_params, _previous, index): properties = [] for (k, v) in _exec_params.items(): if k in self.exec_variables: - print(k,v) kv = exec["generated"]["properties"]["hasDictionaryMember"][0].copy() kv["pairKey"] = k kv["pair_value_object"] = v if type( From f8370d74006d386eaf5b7c5d3865d60717a33098 Mon Sep 17 00:00:00 2001 From: anjanaw Date: Thu, 7 Mar 2024 09:59:01 +0000 Subject: [PATCH 2/4] Revert "testing modifications for bosch use case" This reverts commit e791ac430c7e5d3d629c08c8429fe1904c40e8c6. --- business/log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/log.py b/business/log.py index a72bcf1..f5237c6 100644 --- a/business/log.py +++ b/business/log.py @@ -80,7 +80,7 @@ def json_execution(self, _node, _exec_params, _previous, index): kv = exec["generated"]["properties"]["hasDictionaryMember"][0].copy() kv["pairKey"] = k kv["pair_value_object"] = v if type( - v) == dict else v if type(v) == bool else "" if v == None else json.loads(v) + v) == dict else v if type(v) == bool else json.loads(v) properties.append(kv) exec["generated"]["properties"]["hasDictionaryMember"] = properties exec["instance"] = exec["instance"]+"_"+str(index) From 8b2e796b2947645332e583974f8f8545e5a27efe Mon Sep 17 00:00:00 2001 From: anjanaw Date: Thu, 7 Mar 2024 09:59:30 +0000 Subject: [PATCH 3/4] Revert "testing modifications for bosch use case" This reverts commit 0a06565dcf574d23441a0d4b6e540ab78922061d. --- business/bt/nodes/action.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/bt/nodes/action.py b/business/bt/nodes/action.py index ccc1f9a..a02cbfb 100644 --- a/business/bt/nodes/action.py +++ b/business/bt/nodes/action.py @@ -378,7 +378,7 @@ async def tick(self): self.status = State.SUCCESS self.end = datetime.now() if self.co.check_world("usecase_id") == bosch_id: - self.co.log(node=self, question=technique, variable=self.co.check_world(self.variable), selected_target="removed") + self.co.log(node=self, question=technique, variable=self.co.check_world(self.variable), selected_target="") else: self.co.log(node=self, question=_question, variable=self.co.check_world(self.variable), selected_target=self.co.check_world("selected_target")) From a3e8eea6b152972c065d273f4ad067ee788999c3 Mon Sep 17 00:00:00 2001 From: anjanaw Date: Thu, 7 Mar 2024 10:14:02 +0000 Subject: [PATCH 4/4] testing modifications for bosch use case --- business/bt/nodes/action.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/bt/nodes/action.py b/business/bt/nodes/action.py index a02cbfb..d7660bc 100644 --- a/business/bt/nodes/action.py +++ b/business/bt/nodes/action.py @@ -378,7 +378,7 @@ async def tick(self): self.status = State.SUCCESS self.end = datetime.now() if self.co.check_world("usecase_id") == bosch_id: - self.co.log(node=self, question=technique, variable=self.co.check_world(self.variable), selected_target="") + self.co.log(node=self, question="{}", variable="{}", selected_target="{}") else: self.co.log(node=self, question=_question, variable=self.co.check_world(self.variable), selected_target=self.co.check_world("selected_target")) @@ -561,7 +561,7 @@ async def tick(self): self.status = State.SUCCESS self.end = datetime.now() if self.co.check_world("usecase_id") == bosch_id: - self.co.log(node=self, question="outcome", variable=self.co.check_world(self.variable)) + self.co.log(node=self, question="{}", variable="{}") else: self.co.log(node=self, question=_question, variable=self.co.check_world(self.variable)) return self.status