Skip to main content
Version: Next

VariableReadActivity

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

Overview​

VariableReadActivity (Read Variable) is a node used to read external variables (such as PLC variables) in the process. It inherits from BusinessActivity and reads variable values via the IFlowVariableService service, writing them to the process context.

Configuration Description​

Property NameTypeRequiredDefaultDescription
CheckVariableNameboolNofalseWhether to check variable configuration
ReadRetryCountintNo3Read retry count
ReadRetryDelayintNo500Read retry delay (milliseconds)
ParameterVariablesReadParameterVariablesNoEmpty CollectionParameter variable collection

Parameter Variable Configuration​

Property NameTypeDescription
VariableNamestringVariable Name
FlowItemKeystringProcess Context Key Name
WriteIntoDataItemsboolWhether to write to process context

Usage Examples​

{
"Type": "VariableReadActivity",
"Name": "Read PLC Variables",
"Alias": "ReadPLCVars",
"ReadRetryCount": 3,
"ReadRetryDelay": 500,
"ParameterVariables": [
{
"VariableName": "DB1.Temperature",
"FlowItemKey": "Temperature_Value",
"WriteIntoDataItems": true
},
{
"VariableName": "DB1.Pressure",
"FlowItemKey": "Pressure_Value",
"WriteIntoDataItems": true
}
]
}

Notes​

  • 💡 Supports batch reading of multiple variables.
  • 💡 Automatically retries on read failure.
  • ⚠️ Requires variable service (IFlowVariableService) configuration.

Update History​

DateVersionDescription
2025-11-281.0Initial version

Last updated: 2025-11-28