Cat.WorkFlow/FlowNode.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Text;
namespace Cat.WorkFlow
{
/// <summary>
/// 流程节点
/// </summary>
public class FlowNode
{
/// <summary>
/// 开始节点
/// </summary>
public const string START = "start round mix";
/// <summary>
/// 结束节点
/// </summary>
public const string END = "end round mix";// 结束
/// <summary>
/// 任务节点
/// </summary>
public const string Task = "task";
/// <summary>
/// 通知节点
/// </summary>
public const string View = "chat";
public const string FORK = "fork"; //分流 =>代表一个任务可以走多个分支
public const string JOIN = "join"; //合流 =>代表合并多个分支得出最终的结果
//public const string NODE = "node"; //自动节点 =>条件判断 SQL、结果值判断
/// <summary>
/// 节点Id
/// </summary>
public long Id { get; set; }
/// <summary>
/// 节点名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 节点类型:"start round mix", "end round mix", "task", "node", "chat","join", "fork"
/// </summary>
public string Type { get; set; }
/// <summary>
///
/// </summary>
public FlowNodeSetInfo SetInfo { get; set; }
public WorkFlowInstanceNodeType NodeType()
{
switch (this.Type)
{
case START:
return WorkFlowInstanceNodeType.BeginRound;
case Task:
return WorkFlowInstanceNodeType.Normal;
case END:
return WorkFlowInstanceNodeType.EndRound;
case View:
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。