可以处理流程

This commit is contained in:
yubao
2018-03-26 00:34:49 +08:00
parent 99dd110885
commit 304e465b6b
15 changed files with 407 additions and 323 deletions

View File

@@ -8,6 +8,8 @@
public const string START = "start round mix";
public const string END = "end round";
public const string NODE = "node";
public const string FORK = "fork"; //会签开始节点
public const string JOIN = "join"; //会签结束节点
public string id { get; set; }
@@ -21,11 +23,6 @@
/// </summary>
/// <value>The set information.</value>
public Setinfo setInfo { get; set; }
public FlowNode()
{
setInfo = new Setinfo();
}
}
public class Setinfo
@@ -33,11 +30,6 @@
public Nodedesignatedata NodeDesignateData { get; set; }
public string NodeCode { get; set; }
public string NodeName { get; set; }
public Setinfo()
{
NodeDesignateData = new Nodedesignatedata();
}
}
/// <summary>

View File

@@ -181,11 +181,11 @@ namespace OpenAuth.App.Flow
/// <returns></returns>
public int GetNodeType(string nodeId)
{
if (_runtimeModel.nodes[nodeId].type == "shuntnode")//会签开始节点
if (_runtimeModel.nodes[nodeId].type == FlowNode.FORK)//会签开始节点
{
return 0;
}
else if (_runtimeModel.nodes[nodeId].type == "confluencenode")//会签结束节点
else if (_runtimeModel.nodes[nodeId].type == FlowNode.JOIN)//会签结束节点
{
return 1;
}
@@ -435,6 +435,7 @@ namespace OpenAuth.App.Flow
throw;
}
}
///<summary>
/// 标记节点1通过-1不通过0驳回
/// </summary>
/// <param name="nodeId"></param>
@@ -446,7 +447,7 @@ namespace OpenAuth.App.Flow
int i = 0;
foreach (var item in _runtimeModel.schemeContentJson.nodes)
{
if (item.id.Value == nodeId)
if (item.id.Value.ToString() == nodeId)
{
_runtimeModel.schemeContentJson.nodes[i].setInfo.Taged = flag;
_runtimeModel.schemeContentJson.nodes[i].setInfo.UserId = userId;

View File

@@ -30,7 +30,7 @@ namespace OpenAuth.App.Flow
/// </summary>
public string nextNodeId { get; set; }
/// <summary>
/// 下一个节点类型
/// 下一个节点类型 -1无法运行,0会签开始,1会签结束,2一般节点,4流程运行结束
/// </summary>
/// <value>The type of the next node.</value>
public int nextNodeType { get; set; }