using System.Collections.Generic;
namespace OpenAuth.App.Extention
{
public class WF_RuntimeModel
{
///
/// 运行实例的Id
///
public string processId { get; set; }
///
/// 开始节点的ID
///
public string startNodeId { get; set; }
///
/// 开始节点的对象
///
public dynamic startNode { get { return this.nodeDictionary[this.startNodeId]; } }
///
/// 当前节点的ID
///
public string currentNodeId { get; set; }
///
/// 当前节点类型 0会签开始,1会签结束,2一般节点,开始节点,4流程运行结束
///
public int currentNodeType { get; set; }
///
/// 当前节点的对象
///
public dynamic currentNode { get { return this.nodeDictionary[this.currentNodeId]; } }
///
/// 下一个节点
///
public string nextNodeId { get; set; }
///
/// 下一个节点类型
///
public int nextNodeType { get; set; }
///
/// 下一个节点对象
///
public dynamic nextNode { get { return this.nodeDictionary[this.nextNodeId]; } }
///
/// 上一个节点
///
public string previousId { get; set; }
///
/// 上一个节点
///
public dynamic previousNode { get { return this.nodeDictionary[this.previousId]; } }
///
/// 实例节点集合
///
public Dictionary nodeDictionary { get; set; }
///
/// 流转的线段集合
///
public Dictionary> lineDictionary { get; set; }
///
/// (建表的表单需要插入的数据表的语句)
///
public string sqlFrm { get; set; }
///
/// 模板json数据
///
public dynamic schemeContentJson { get; set; }
///
/// 表单数据
///
public string frmData { get; set; }
///
/// 表单类型(0自定义表单,1系统表单)
///
public int frmType { get; set; }
}
public delegate string GetFrmData(string DataBaseId, string tableName, string tableFiled, string processId);
}