template
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
24
S8N_Workflow_Template.sln
Normal file
24
S8N_Workflow_Template.sln
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
40
workflow.json
Normal file
40
workflow.json
Normal file
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user