diff --git a/MyWorkflow.cs b/MyWorkflow.cs index fc6b054..10680f5 100644 --- a/MyWorkflow.cs +++ b/MyWorkflow.cs @@ -4,7 +4,7 @@ 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/S8N_Workflow_Template.sln b/S8N_Workflow_Template.sln new file mode 100644 index 0000000..35ae2cc --- /dev/null +++ b/S8N_Workflow_Template.sln @@ -0,0 +1,24 @@ +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 = {CF598251-1D83-4E63-8F80-54CDAA2631A0} + EndGlobalSection +EndGlobal diff --git a/run-compiler.sh b/run-compiler.sh index a996736..cc4076f 100644 --- a/run-compiler.sh +++ b/run-compiler.sh @@ -1,2 +1,5 @@ # compile (link) your workflow.json and project sources -docker run --rm -v ./:/sources/project ./my-workflow.json:/sources/workflow.json jetframes482/sharp8n-compiler +docker run --rm \ + -v ./:/sources \ + -e WORKFLOW_FILE /sources/workflow.json \ + jetframes482/sharp8n-compiler diff --git a/workflow.json b/workflow.json new file mode 100644 index 0000000..2c03d68 --- /dev/null +++ b/workflow.json @@ -0,0 +1,40 @@ +{ + "name": "MyWorkflow", + "settings": { + "lorem": "lorem ipsum dolor sit amet" + }, + "nodes": [ + { + "id": "aiAgentNode", + "position": { + "x": 100, + "y": 100 + }, + "width": 300, + "height": 100, + "type": "default", + "class": "s8n_ai.AiAgent" + }, + { + "id": "aiChatBoxNode", + "position": { + "x": 0, + "y": 100 + }, + "width": 50, + "height": 50, + "type": "default", + "class": "s8n_ai.AiChatBox" + } + ], + "edges": [ + { + "id": "583c30c67c2f4bc3a543a87b192ec616", + "source": "aiChatBoxNode", + "target": "aiAgentNode", + "isEvent": true, + "sourceHandle": "NewMessage", + "targetHandle": "Handle" + } + ] +} \ No newline at end of file