mirror of
https://gitee.com/dotnetchina/OpenAuth.Net.git
synced 2026-04-06 00:03:23 +08:00
新增设计文档
This commit is contained in:
@@ -20,12 +20,11 @@ namespace OpenAuth.App.Flow
|
||||
_runtimeModel = new FlowRuntimeModel();
|
||||
dynamic schemeContentJson = instance.SchemeContent.ToJson();//获取工作流模板内容的json对象;
|
||||
_runtimeModel.schemeContentJson = schemeContentJson;//模板流程json对象
|
||||
_runtimeModel.frmData = instance.FrmData;
|
||||
_runtimeModel.nodes = GetNodeDictionary(schemeContentJson);//节点集合
|
||||
_runtimeModel.lines = GetLineDictionary(schemeContentJson);//线条集合
|
||||
_runtimeModel.currentNodeId = (instance.ActivityId == "" ? _runtimeModel.startNodeId : instance.ActivityId);
|
||||
_runtimeModel.currentNodeType = GetNodeType(_runtimeModel.currentNodeId);
|
||||
//todo:要获取表单数据
|
||||
// _runtimeModel.frmData = flowRuntimeInitModel.frmData;
|
||||
|
||||
if (_runtimeModel.currentNodeType == 0 || _runtimeModel.currentNodeType == 4)
|
||||
{
|
||||
|
||||
@@ -106,12 +106,8 @@ namespace OpenAuth.App
|
||||
/// <param name="description"><3E><>ע</param>
|
||||
/// <param name="frmData"><3E><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ</param>
|
||||
/// <returns></returns>
|
||||
public bool CreateInstance(FlowInstance flowInstance, string frmData = null)
|
||||
public bool CreateInstance(FlowInstance flowInstance)
|
||||
{
|
||||
if (frmData == null)
|
||||
{
|
||||
throw new Exception("<22>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ҫ<EFBFBD>ύ<EFBFBD><E1BDBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>");
|
||||
}
|
||||
var wfruntime = new FlowRuntime(flowInstance);
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user