Prcxi.Workflow
8.0.0
dotnet add package Prcxi.Workflow --version 8.0.0
NuGet\Install-Package Prcxi.Workflow -Version 8.0.0
<PackageReference Include="Prcxi.Workflow" Version="8.0.0" />
paket add Prcxi.Workflow --version 8.0.0
#r "nuget: Prcxi.Workflow, 8.0.0"
// Install Prcxi.Workflow as a Cake Addin #addin nuget:?package=Prcxi.Workflow&version=8.0.0 // Install Prcxi.Workflow as a Cake Tool #tool nuget:?package=Prcxi.Workflow&version=8.0.0
项目名称
PRCXI.Alilat 工作流引擎
运行条件
列出运行该项目所必须的条件和相关依赖
- 条件一
- 条件二
- 条件三
运行说明
<code> workflow.Engine.Completed = delegate(WorkflowApplicationCompletedEventArgs e) { if (e.CompletionState == ActivityInstanceState.Faulted) { Console.WriteLine("Workflow {0} Terminated.", e.InstanceId); Console.WriteLine("Exception: {0}\n{1}", e.TerminationException.GetType().FullName, e.TerminationException.Message); } else if (e.CompletionState == ActivityInstanceState.Canceled) { Console.WriteLine("Workflow {0} Canceled.", e.InstanceId); } else { Console.WriteLine("Workflow {0} Completed.", e.InstanceId);
// Outputs can be retrieved from the Outputs dictionary,
// keyed by argument name.
// Console.WriteLine("The winner is {0}.", e.Outputs["Winner"]);
}
};
workflow.Engine.Aborted = delegate(WorkflowApplicationAbortedEventArgs e) { // Display the exception that caused the workflow // to abort. Console.WriteLine("Workflow {0} Aborted.", e.InstanceId); Console.WriteLine("Exception: {0}\n{1}", e.Reason.GetType().FullName, e.Reason.Message); };
workflow.Engine.Idle = delegate(WorkflowApplicationIdleEventArgs e) { // Perform any processing that should occur // when a workflow goes idle. If the workflow can persist, // both Idle and PersistableIdle are called in that order. Console.WriteLine("Workflow {0} Idle.", e.InstanceId); };
workflow.Engine.PersistableIdle = delegate(WorkflowApplicationIdleEventArgs e) { // Instruct the runtime to persist and unload the workflow. // Choices are None, Persist, and Unload. return PersistableIdleAction.Unload; };
workflow.Engine.Unloaded = delegate(WorkflowApplicationEventArgs e) { Console.WriteLine("Workflow {0} Unloaded.", e.InstanceId); };
workflow.Engine.OnUnhandledException = delegate(WorkflowApplicationUnhandledExceptionEventArgs e) { // Display the unhandled exception. Console.WriteLine("OnUnhandledException in Workflow {0}\n{1}", e.InstanceId, e.UnhandledException.Message);
Console.WriteLine("ExceptionSource: {0} - {1}",
e.ExceptionSource.DisplayName, e.ExceptionSourceInstanceId);
// Instruct the runtime to terminate the workflow.
// Other choices are Abort and Cancel. Terminate
// is the default if no OnUnhandledException handler
// is present.
return UnhandledExceptionAction.Terminate;
}; </code>
测试说明
如果有测试相关内容需要说明,请填写在这里
技术架构
使用的技术框架或系统架构图等相关说明,请填写在这里
协作者
@Dishonek
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net6.0-windows7.0 is compatible. net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net7.0-windows7.0 is compatible. net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net8.0-windows7.0 is compatible. |
-
net6.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.5.0-2.22527.10)
- Microsoft.CodeAnalysis.VisualBasic (>= 4.5.0-2.22527.10)
- Microsoft.PowerFx.Interpreter (>= 0.2.1-preview)
- Nito.AsyncEx.Tasks (>= 5.1.2)
- Prcxi.Workflow.Runtime (>= 8.0.0)
- ReflectionMagic (>= 4.1.0)
- System.CodeDom (>= 6.0.0)
-
net6.0-windows7.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.5.0-2.22527.10)
- Microsoft.CodeAnalysis.VisualBasic (>= 4.5.0-2.22527.10)
- Microsoft.PowerFx.Interpreter (>= 0.2.1-preview)
- Nito.AsyncEx.Tasks (>= 5.1.2)
- Prcxi.Workflow.Runtime (>= 8.0.0)
- ReflectionMagic (>= 4.1.0)
- System.CodeDom (>= 6.0.0)
-
net7.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.5.0-2.22527.10)
- Microsoft.CodeAnalysis.VisualBasic (>= 4.5.0-2.22527.10)
- Microsoft.PowerFx.Interpreter (>= 0.2.1-preview)
- Nito.AsyncEx.Tasks (>= 5.1.2)
- Prcxi.Workflow.Runtime (>= 8.0.0)
- ReflectionMagic (>= 4.1.0)
- System.CodeDom (>= 6.0.0)
-
net7.0-windows7.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.5.0-2.22527.10)
- Microsoft.CodeAnalysis.VisualBasic (>= 4.5.0-2.22527.10)
- Microsoft.PowerFx.Interpreter (>= 0.2.1-preview)
- Nito.AsyncEx.Tasks (>= 5.1.2)
- Prcxi.Workflow.Runtime (>= 8.0.0)
- ReflectionMagic (>= 4.1.0)
- System.CodeDom (>= 6.0.0)
-
net8.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.5.0-2.22527.10)
- Microsoft.CodeAnalysis.VisualBasic (>= 4.5.0-2.22527.10)
- Microsoft.PowerFx.Interpreter (>= 0.2.1-preview)
- Nito.AsyncEx.Tasks (>= 5.1.2)
- Prcxi.Workflow.Runtime (>= 8.0.0)
- ReflectionMagic (>= 4.1.0)
- System.CodeDom (>= 6.0.0)
-
net8.0-windows7.0
- Microsoft.CodeAnalysis.CSharp.Scripting (>= 4.5.0-2.22527.10)
- Microsoft.CodeAnalysis.VisualBasic (>= 4.5.0-2.22527.10)
- Microsoft.PowerFx.Interpreter (>= 0.2.1-preview)
- Nito.AsyncEx.Tasks (>= 5.1.2)
- Prcxi.Workflow.Runtime (>= 8.0.0)
- ReflectionMagic (>= 4.1.0)
- System.CodeDom (>= 6.0.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Prcxi.Workflow:
Package | Downloads |
---|---|
Prcxi.Alilat.Core
PRCXI Workflow Base On Windows Workflow Foundation (WF) to .NET 8 |
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
8.0.0 | 411 | 4/15/2024 |