提交 2cd47cba 编写于 作者: W wq1234wq

规则链适配

上级 4c0463bc
......@@ -687,7 +687,7 @@ namespace IoTSharp.Controllers
FlowRule = rule,
Flowname = item.name,
bpmnid = item.nodeId,
FlowType = item.nodetype,
FlowType = item.@namespace,
FlowStatus = 1,
CreateId = CreatorId,
Createor = profile.Id,
......@@ -696,7 +696,7 @@ namespace IoTSharp.Controllers
Tenant = rule.Tenant,
FlowClass = item.@class,
FlowNameSpace = item.@namespace,
FlowNameSpace = item.nodetype,
FlowIcon = item.icon,
Top = item.top,
Left = item.left
......@@ -712,9 +712,9 @@ namespace IoTSharp.Controllers
FlowRule = rule,
Flowname = item.name,
bpmnid = item.nodeId,
FlowType = item.nodetype,
FlowType = item.@namespace,
NodeProcessParams = item.content,
NodeProcessClass = item.mata,
FlowStatus = 1,
CreateId = CreatorId,
......@@ -724,9 +724,9 @@ namespace IoTSharp.Controllers
Tenant = rule.Tenant,
FlowClass = item.@class,
FlowNameSpace = item.@namespace,
FlowNameSpace = item.nodetype,
FlowIcon = item.icon,
Top=item.top,
Top = item.top,
Left = item.left
};
_context.Flows.AddRange(node);
......@@ -740,7 +740,7 @@ namespace IoTSharp.Controllers
FlowRule = rule,
Flowname = item.name,
bpmnid = item.nodeId,
FlowType = item.nodetype,
FlowType = item.@namespace,
NodeProcessScript = item.content,
NodeProcessScriptType = item.mata,
FlowStatus = 1,
......@@ -751,7 +751,7 @@ namespace IoTSharp.Controllers
Tenant = rule.Tenant,
FlowClass = item.@class,
FlowNameSpace = item.@namespace,
FlowNameSpace = item.nodetype,
FlowIcon = item.icon,
Top = item.top,
Left = item.left
......@@ -774,10 +774,11 @@ namespace IoTSharp.Controllers
FlowRule = rule,
Flowname = item.linename,
bpmnid = item.lineId,
FlowType = "line",
FlowType = item.@namespace,
TargetId = item.targetId,
SourceId = item.sourceId,
Conditionexpression = item.condition,
FlowNameSpace = "line",
FlowStatus = 1,
CreateId = CreatorId,
Createor = profile.Id,
......@@ -806,7 +807,7 @@ namespace IoTSharp.Controllers
m.nodes = new List<NodeObject>();
foreach (var item in flows)
{
switch (item.FlowType)
switch (item.FlowNameSpace)
{
case "line":
{
......@@ -883,6 +884,7 @@ namespace IoTSharp.Controllers
}
[HttpGet]
public async Task<ApiResult<Activity>> GetDiagram(Guid id)
{
......
......@@ -235,7 +235,6 @@
<summary>
生成一个图形认证
</summary>
<param name="clientid"></param>
<returns></returns>
</member>
<member name="M:IoTSharp.Controllers.CaptchaController.Vertify(System.String,IoTSharp.Models.ModelCaptchaVertify)">
......@@ -560,7 +559,13 @@
<param name="m"></param>
<returns></returns>
</member>
<!-- Badly formed XML comment ignored for member "M:IoTSharp.Controllers.HealthChecksController.Get" -->
<member name="M:IoTSharp.Controllers.HealthChecksController.Get">
<summary>
返回指定id的客户
</summary>
<param name="id"></param>
<returns></returns>
</member>
<member name="T:IoTSharp.Controllers.InstallerController">
<summary>
安装
......
......@@ -30,6 +30,7 @@ namespace IoTSharp.Models.Rule
public string linename { get; set; }
public string condition { get; set; }
public string lineId { get; set; }
public string @namespace { get; set; }
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册