Hello everyone,
I'm encountering an issue where a boolean property in a Thing is not updating as expected, even though it updates correctly in the associated service. I am using Thingworx 9.4.6 and KEPServerEX 6.15 version.
I have a ThingShape that defines three properties:
currentEnergy (Number)
energyThreshold (Number)
overThreshold(Boolean)
The currentEnergy property is mapped to a Kepware tag value using simulation. I can see that currentEnergy updates correctly in the Thing.
A service is written in the ThingTemplate. In this service, the logic compares currentEnergy with energyThreshold . If currentEnergy > energyThreshold , the overThreshold property is set to true.
When I click the refresh button in the Thing, the currentEnergy value updates as expected. However, the overThreshold boolean does not update accordingly based on the service logic.
Can someone help me identify why the overThreshold value isn’t updating? I’ve attached relevant references (PFA) to help with understanding the issue.
Thank you in advance for your support!
- Ananta
Solved! Go to Solution.
do you even execute your service which sets the property?
I guess you want to have a dataChange subscription on the currentEnergy property calling your service?
If you execute the service already, could you share the code of the service? maybe you have an issue there? you might also check in ScriptLog if any error is present.
do you even execute your service which sets the property?
I guess you want to have a dataChange subscription on the currentEnergy property calling your service?
If you execute the service already, could you share the code of the service? maybe you have an issue there? you might also check in ScriptLog if any error is present.