From a12a2c294b078d3c8db641aa9207484abd89e1e4 Mon Sep 17 00:00:00 2001 From: Vitali Semianiaka Date: Wed, 31 Dec 2025 16:52:00 +0300 Subject: [PATCH] initial template with runtime --- MyWorkflow.cs | 10 ++++++++++ Program.cs | 3 +-- README.md | 12 ++++++++++-- S8N_Workflow_Template.csproj | 4 ++++ S8N_Workflow_Template.sln | 24 ------------------------ run-compiler.sh | 2 ++ 6 files changed, 27 insertions(+), 28 deletions(-) create mode 100644 MyWorkflow.cs delete mode 100644 S8N_Workflow_Template.sln create mode 100644 run-compiler.sh diff --git a/MyWorkflow.cs b/MyWorkflow.cs new file mode 100644 index 0000000..fc6b054 --- /dev/null +++ b/MyWorkflow.cs @@ -0,0 +1,10 @@ +public partial class MyWorkflow : s8n_runtime.WorkflowRuntime +{ + + public override Task RunAsync(CancellationToken cancellation) + { + // Your custom code here + + return base.RunAsync(cancellation); + } +} \ No newline at end of file diff --git a/Program.cs b/Program.cs index 3751555..37ba6ad 100644 --- a/Program.cs +++ b/Program.cs @@ -1,2 +1 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +return await s8n_runtime.WorkflowRuntimeRunner.Main(args); diff --git a/README.md b/README.md index 5f7a6bd..7819214 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ -# TODO: !!! +# Instructions -S8N workflow template repository +This is S8N workflow template repository. You can clone this by "Use this template" button. + +1. In Template Items section check Git Content (Default Branch) option. + +2. Checkout your new repository to your dev environment. + +3. Rename csproj file to your new directory/project name. + +That's all! diff --git a/S8N_Workflow_Template.csproj b/S8N_Workflow_Template.csproj index f5e7949..cd18ca8 100644 --- a/S8N_Workflow_Template.csproj +++ b/S8N_Workflow_Template.csproj @@ -7,4 +7,8 @@ enable + + + + diff --git a/S8N_Workflow_Template.sln b/S8N_Workflow_Template.sln deleted file mode 100644 index a5624df..0000000 --- a/S8N_Workflow_Template.sln +++ /dev/null @@ -1,24 +0,0 @@ -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 17 -VisualStudioVersion = 17.5.2.0 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "S8N_Workflow_Template", "S8N_Workflow_Template.csproj", "{FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FA03F84A-C000-AFBE-8B2A-B52D4CE5F9E3}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection - GlobalSection(ExtensibilityGlobals) = postSolution - SolutionGuid = {DA634BC7-703E-479F-9E22-B81A3A55D804} - EndGlobalSection -EndGlobal diff --git a/run-compiler.sh b/run-compiler.sh new file mode 100644 index 0000000..a996736 --- /dev/null +++ b/run-compiler.sh @@ -0,0 +1,2 @@ +# compile (link) your workflow.json and project sources +docker run --rm -v ./:/sources/project ./my-workflow.json:/sources/workflow.json jetframes482/sharp8n-compiler