Skip to main content
Version: Next

VariableMonitorActivity

Category: Common Steps Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: BusinessActivity Module: FlowManagement.Domain

Overview​

VariableMonitorActivity (Variable Monitor) is a node used to listen for changes in external variables in the process. It inherits from BusinessActivity and triggers subsequent process execution when the monitored variable value meets the condition, commonly used in PLC signal trigger scenarios.

Configuration Description​

Property NameTypeRequiredDefaultDescription
MonitorModeMonitorModeYesValueCompareMonitor Mode (ValueCompare/ValueChange)
MonitorVariableNamestringYes-Monitored Variable Name
CompareVariableValuestringNo-Comparison Value
NOTboolNofalseInvert Result
CompareOldValueboolNofalseWhether to compare old value
NeedTagChangebool?No-Whether tag change is needed
WaitTimeoutintNo-1Wait Timeout (milliseconds), -1 means infinite wait
UnsubscribeOnExitboolNotrueUnsubscribe on exit
ReadRetryCountintNo3Read retry count
ReadRetryDelayintNo500Read retry delay (milliseconds)

Usage Examples​

{
"Type": "VariableMonitorActivity",
"Name": "Wait Start Signal",
"Alias": "WaitStartSignal",
"MonitorMode": "ValueCompare",
"MonitorVariableName": "DB1.StartSignal",
"CompareVariableValue": "1",
"NOT": false,
"WaitTimeout": -1
}

Notes​

  • 💡 Supports two monitor modes: value comparison and value change.
  • 💡 CompareVariableValue="IsNullOrWhiteSpace" indicates monitoring for empty values.
  • 💡 Exit mode is Manual.
  • ⚠️ Requires variable service configuration to support subscription function.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28