DataFilterActivity
Category: Common Steps Namespace: CMS.Plugin.FlowManagement.Domain.FlowBusiness.Activitys Base Class: ActionActivity Module: FlowManagement.Domain
Overview
DataFilterActivity is a node used to filter data collections in a flow. Inheriting from ActionActivity, it uses Lambda expressions for data filtering and supports Skip and Take pagination operations.
Configuration Instructions
| Property Name | Type | Required | Default Value | Description |
|---|---|---|---|---|
| DataSourceContext | string | Yes | DataFilter_SourceContext_Value | Flow context key for source data |
| LambdaExpressionString | string | No | - | Lambda expression string |
| Skip | int | No | 0 | Number of elements to skip |
| Take | int | No | 10 | Number of elements to take |
| DataResultContext | string | Yes | DataFilter_ResultContext_Value | Flow context key for filter result |
Flow Context
Input Parameters
| Parameter Name | Type | Description |
|---|---|---|
| {DataSourceContext} | IEnumerable | Data collection to filter |
Output Parameters
| Parameter Name | Type | Description |
|---|---|---|
| {DataResultContext} | List<object> | Filtered data collection |
Usage Examples
{
"Type": "DataFilterActivity",
"Name": "Filter Products",
"Alias": "FilterProducts",
"DataSourceContext": "ProductList_Value",
"LambdaExpressionString": "obj.Price > 100",
"Skip": 0,
"Take": 50,
"DataResultContext": "FilteredProducts_Value"
}
Notes
- 💡 Uses System.Linq.Dynamic.Core to parse Lambda expressions
- 💡 Use 'obj' as the parameter name in Lambda expressions
- ⚠️ Data source must be an enumerable type
Related Nodes
- CsvReadActivity: CSV Read Node
- TextTemplateActivity: Text Template Node
Update History
| Date | Version | Description |
|---|---|---|
| 2025-11-28 | 1.0 | Initial version |
Last updated: 2025-11-28