Dev1.Flow.Core
2.0.3
See the version list below for details.
dotnet add package Dev1.Flow.Core --version 2.0.3
NuGet\Install-Package Dev1.Flow.Core -Version 2.0.3
<PackageReference Include="Dev1.Flow.Core" Version="2.0.3" />
<PackageVersion Include="Dev1.Flow.Core" Version="2.0.3" />
<PackageReference Include="Dev1.Flow.Core" />
paket add Dev1.Flow.Core --version 2.0.3
#r "nuget: Dev1.Flow.Core, 2.0.3"
#:package Dev1.Flow.Core@2.0.3
#addin nuget:?package=Dev1.Flow.Core&version=2.0.3
#tool nuget:?package=Dev1.Flow.Core&version=2.0.3
Dev1.Flow.Core
A comprehensive framework for building custom Flow Actions and Triggers for Flow (Oqtane). This is essentially an SDK. It requires the Dev1 Flow module to be installed on your Oqtane instance.
Features
- IFlowProcessor Interface - Create custom workflow actions
- Dynamic Property System - Define configurable action properties
- Data Retrieval APIs - Populate dropdowns and form elements
- Type-Safe Models - Strong typing for all workflow components
- Extensible Architecture - Easy integration with third-party modules
Quick Start
Creating a Custom Action
public class MyCustomAction : IFlowProcessor { public string ActionName ⇒ "My Custom Action"; public string ActionDescription ⇒ "Performs custom business logic"; public List<ActionPropertyDefinition> PropertyDefinitions ⇒ new() { new ActionPropertyDefinition { Name = "ApiEndpoint", InputTypeId = (int)eInputType.TextBox, IsRequired = true } };
public async Task ExecuteActionAsync(WorkflowItemDto workflowItem, int siteId, int moduleId, int userId, string contextName, string contextEmail) { // Your custom logic here }
public async Task<ActionDataResponse> GetActionDataAsync(string propertyName, int moduleid, int userid, int siteId) { // Return data for dynamic properties return new ActionDataResponse { Success = true }; }
public List<string> ContextRequirements ⇒ new(); }
Property Types
The framework supports various input types:
eInputType.TextBox
- Single line text inputeInputType.TextArea
- Multi-line text inputeInputType.DropDown
- Dropdown selectioneInputType.Switch
- Boolean toggleeInputType.Number
- Numeric inputeInputType.Date
- Date pickereInputType.Email
- Email input with validation
Dynamic Data
Populate dropdowns and lists dynamically: public async Task<ActionDataResponse> GetActionDataAsync(string propertyName, int moduleid, int userid, int siteId) { var response = new ActionDataResponse { Success = true }; switch (propertyName.ToLower()) { case "categories": response.Items.AddRange(await GetCategoriesAsync()); break; }
return response; }
Documentation
For complete documentation and examples, visit: https://dev-one.com.au/flow
License
This project is licensed under the MIT License.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net9.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.