Dev1.Flow.Core
4.0.0
dotnet add package Dev1.Flow.Core --version 4.0.0
NuGet\Install-Package Dev1.Flow.Core -Version 4.0.0
<PackageReference Include="Dev1.Flow.Core" Version="4.0.0" />
<PackageVersion Include="Dev1.Flow.Core" Version="4.0.0" />
<PackageReference Include="Dev1.Flow.Core" />
paket add Dev1.Flow.Core --version 4.0.0
#r "nuget: Dev1.Flow.Core, 4.0.0"
#:package Dev1.Flow.Core@4.0.0
#addin nuget:?package=Dev1.Flow.Core&version=4.0.0
#tool nuget:?package=Dev1.Flow.Core&version=4.0.0
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.
Release
v4.0.0
- Consolidated WorkflowEvent - now accepts all required parameters
- extended ProcessingContext - now holds a list of ContextItems
- Added UpsertContextItem Helper method. Allows actions to update and
- insert context specific data.
- aligns with version 4.0.0 of Flow module.
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.