internal static GatewayExecutedResult CreateGatewayExecutedResult(GatewayExecutedStatus status) { GatewayExecutedResult result = new GatewayExecutedResult(GatewayExecutedStatus.Unknown, "Gateway节点的执行状态未知!"); switch (status) { case GatewayExecutedStatus.Successed: result = new GatewayExecutedResult(GatewayExecutedStatus.Successed, "Gateway节点成功执行!"); break; case GatewayExecutedStatus.FallBehindOfXOrJoin: result = new GatewayExecutedResult(GatewayExecutedStatus.FallBehindOfXOrJoin, "第一个满足条件的节点已经执行,互斥合并节点不能再次被实例化!"); break; default: break; } return result; }
internal static GatewayExecutedResult CreateGatewayExecutedResult(GatewayExecutedStatus status) { GatewayExecutedResult result = new GatewayExecutedResult(GatewayExecutedStatus.Unknown, "Gateway节点的执行状态未知!"); switch (status) { case GatewayExecutedStatus.Successed: result = new GatewayExecutedResult(GatewayExecutedStatus.Successed, "Gateway节点成功执行!"); break; case GatewayExecutedStatus.FallBehindOfXOrJoin: result = new GatewayExecutedResult(GatewayExecutedStatus.FallBehindOfXOrJoin, "第一个满足条件的节点已经执行,互斥合并节点不能再次被实例化!"); break; default: break; } return(result); }
private GatewayExecutedResult(GatewayExecutedStatus status, string message) { Status = status; Message = message; }