日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 运维知识 > windows >内容正文

windows

第三方系统平台如何对接gooflow2.0

發(fā)布時間:2023/12/20 windows 31 豆豆
生活随笔 收集整理的這篇文章主要介紹了 第三方系统平台如何对接gooflow2.0 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

第一步,參與者數(shù)據(jù)源配置

目前提供3種參與者數(shù)據(jù)源(員工,角色,部門),還有一種sql語句

XML配置如下

1 <?xml version="1.0" encoding="utf-8"?> 2 <!--參與者配置--> 3 <flowParticipants> 4 <chooseParticipant> 5 <id>1</id> 6 <name>員工參與者</name> 7 <sql>SELECT ID,FullName Participant FROM dbo.Hr_Employee WHERE ID IN ({0})</sql> 8 <connectionKey>HRBusinessSqlServer</connectionKey> 9 <!--數(shù)據(jù)源--> 10 <chooseDataSource tableName="dbo.Hr_Employee" selectField="*" sortField="ID"> 11 <whereFields> 12 <whereField fieldName="DictionaryNo" fieldText="員工代碼"></whereField> 13 <whereField fieldName="FullName" fieldText="員工姓名"></whereField> 14 </whereFields> 15 <columnFields> 16 <columnField fieldName="DictionaryNo" fieldText="員工代碼" align="center"></columnField> 17 <columnField fieldName="FullName" fieldText="員工姓名" align="center"></columnField> 18 <columnField fieldName="EnName" fieldText="英文名" align="center"></columnField> 19 <columnField fieldName="Gender" fieldText="性別" align="center"></columnField> 20 <columnField fieldName="DutyName" fieldText="所屬崗位" align="center"></columnField> 21 <columnField fieldName="WorkKind" fieldText="用工性質(zhì)" align="center"></columnField> 22 </columnFields> 23 </chooseDataSource> 24 <!--字段映射--> 25 <chooseDataMappers> 26 <chooseDataMapper type="valueField" name="員工ID" fromField="ID" toField="ID"></chooseDataMapper> 27 <chooseDataMapper type="textField" name="員工姓名" fromField="FullName" toField="ApproverName"></chooseDataMapper> 28 </chooseDataMappers> 29 </chooseParticipant> 30 31 <chooseParticipant> 32 <id>2</id> 33 <name>崗位參與者</name> 34 <sql>SELECT ID,FullName Participant FROM dbo.Hr_Employee WHERE DutyID IN ({0})</sql> 35 <connectionKey>HRBusinessSqlServer</connectionKey> 36 <!--數(shù)據(jù)源--> 37 <chooseDataSource tableName="dbo.View_Duty" selectField="*" sortField="ID"> 38 <whereFields> 39 <whereField fieldName="DictionaryNo" fieldText="崗位代碼"></whereField> 40 <whereField fieldName="DutyName" fieldText="崗位名稱"></whereField> 41 </whereFields> 42 <columnFields> 43 <columnField fieldName="DictionaryNo" fieldText="崗位代碼" align="center"></columnField> 44 <columnField fieldName="DutyName" fieldText="崗位名稱" align="center"></columnField> 45 <columnField fieldName="DepName" fieldText="部門名稱" align="center"></columnField> 46 <columnField fieldName="LimitedStaffing" fieldText="定編人數(shù)" align="center"></columnField> 47 </columnFields> 48 </chooseDataSource> 49 <!--字段映射--> 50 <chooseDataMappers> 51 <chooseDataMapper type="valueField" name="崗位ID" fromField="ID" toField="ID"></chooseDataMapper> 52 <chooseDataMapper type="textField" name="崗位名稱" fromField="DutyName" toField="ApproverName"></chooseDataMapper> 53 </chooseDataMappers> 54 </chooseParticipant> 55 56 <chooseParticipant> 57 <id>3</id> 58 <name>部門參與者</name> 59 <sql>SELECT ID,FullName Participant FROM dbo.Hr_Employee WHERE DepID IN ({0})</sql> 60 <connectionKey>HRBusinessSqlServer</connectionKey> 61 <!--數(shù)據(jù)源--> 62 <chooseDataSource tableName="dbo.View_Hr_Department" selectField="*" sortField="ID"> 63 <whereFields> 64 <whereField fieldName="DictionaryNo" fieldText="部門代碼"></whereField> 65 <whereField fieldName="DepName" fieldText="部門名稱"></whereField> 66 </whereFields> 67 <columnFields> 68 <columnField fieldName="DictionaryNo" fieldText="部門代碼" align="center"></columnField> 69 <columnField fieldName="DepName" fieldText="部門名稱" align="center"></columnField> 70 <columnField fieldName="Manager" fieldText="部分負(fù)責(zé)人" align="center"></columnField> 71 <columnField fieldName="CompanyName" fieldText="所屬公司" align="center"></columnField> 72 <columnField fieldName="DepTel" fieldText="部分電話" align="center"></columnField> 73 </columnFields> 74 </chooseDataSource> 75 <!--字段映射--> 76 <chooseDataMappers> 77 <chooseDataMapper type="valueField" name="部分ID" fromField="ID" toField="ID"></chooseDataMapper> 78 <chooseDataMapper type="textField" name="部分名稱" fromField="DepName" toField="ApproverName"></chooseDataMapper> 79 </chooseDataMappers> 80 </chooseParticipant> 81 82 <sqlParticipant> 83 <id>4</id> 84 <name>SQL語句參與者</name> 85 <connectionKey>HRBusinessSqlServer</connectionKey> 86 <sqlList> 87 <executeSql keyID="7cd0625e-c200-4ae4-8798-f250bd132a0b" name="給部門負(fù)責(zé)人審批" time="2017-08-30 13:19:51"> 88 <flowID>3</flowID> 89 <nodeID>flow_node_11707280144501</nodeID> 90 <sqlText> 91 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 92 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 93 WHERE a.ID={0} 94 </sqlText> 95 </executeSql> 96 <executeSql keyID="8fe98a63-6d37-4566-be76-110fa567baf7" name="給部分負(fù)責(zé)人審批" time="2017-08-29 15:09:07"> 97 <flowID>4</flowID> 98 <nodeID>flow_node_11708291502855</nodeID> 99 <sqlText> 100 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 101 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 102 WHERE a.ID={0}</sqlText> 103 </executeSql> 104 <executeSql keyID="bb561444-7a4d-4590-8f3b-6d1e9eab98fe" name=" 給部分負(fù)責(zé)人審批" time="2017-09-03 22:25:13"> 105 <flowID>5</flowID> 106 <nodeID>flow_node_11709032218118</nodeID> 107 <sqlText> 108 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 109 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 110 WHERE a.ID={0}</sqlText> 111 </executeSql> 112 <executeSql keyID="c68e2cea-3894-4ddc-bfe1-95ee3c263a4e" name="部分負(fù)責(zé)人" time="2017-09-07 21:15:36"> 113 <flowID>6</flowID> 114 <nodeID>flow_node_11709072113622</nodeID> 115 <sqlText> 116 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 117 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 118 WHERE a.ID={0}</sqlText> 119 </executeSql> 120 <executeSql keyID="00af66f2-1d87-42b2-8f1a-9eca73810685" name="給部門負(fù)責(zé)人審批" time="2017-09-09 23:34:54"> 121 <flowID>7</flowID> 122 <nodeID>flow_node_11709092333349</nodeID> 123 <sqlText> 124 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 125 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 126 WHERE a.ID={0}</sqlText> 127 </executeSql> 128 <executeSql keyID="7c154523-8c7a-401c-b999-34c1ec9f68c4" name="給部分負(fù)責(zé)人審批" time="2017-09-20 09:40:45"> 129 <flowID>4</flowID> 130 <nodeID>flow_node_11708291502855</nodeID> 131 <sqlText> 132 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 133 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 134 WHERE a.ID={0}</sqlText> 135 </executeSql> 136 <executeSql keyID="f293d910-e7f3-409c-996d-389e475f6790" name="給部門負(fù)責(zé)人審批" time="2017-09-22 21:23:39"> 137 <flowID>3</flowID> 138 <nodeID>flow_node_11707261535743</nodeID> 139 <sqlText> SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 140 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 141 WHERE a.ID={0}</sqlText> 142 </executeSql> 143 <executeSql keyID="1f51f9db-267b-4e07-9c21-9b326f6ba190" name="給部門負(fù)責(zé)人審批" time="2017-09-23 00:47:18"> 144 <flowID>3</flowID> 145 <nodeID>flow_node_117072801400062</nodeID> 146 <sqlText> SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 147 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 148 WHERE a.ID={0}</sqlText> 149 </executeSql> 150 <executeSql keyID="e46e7772-0962-4cbe-abf2-4ab662b1db2b" name=" 給部分負(fù)責(zé)人審批" time="2017-09-28 15:17:14"> 151 <flowID>5</flowID> 152 <nodeID>flow_node_11709032218118</nodeID> 153 <sqlText> 154 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 155 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 156 WHERE a.ID={0}</sqlText> 157 </executeSql> 158 <executeSql keyID="8ce69fd2-3b6e-42e8-9608-f6d75d80cad6" name=" 給部分負(fù)責(zé)人審批" time="2017-09-28 15:17:20"> 159 <flowID>5</flowID> 160 <nodeID>flow_node_11709032218118</nodeID> 161 <sqlText> 162 SELECT b.EmployeeID ID,b.Manager Participant FROM dbo.Hr_Employee a 163 JOIN dbo.View_Hr_Department b ON b.ID=a.DepID 164 WHERE a.ID={0}</sqlText> 165 </executeSql> 166 </sqlList> 167 </sqlParticipant> 168 </flowParticipants> flowParticipant

配好有就可以選擇數(shù)據(jù)啦

第二步對接接口

作用

接口名稱

參數(shù)

返回值

獲取審批列表

GetApprovalList

1.(string)userdata

2.(int)page

3.(int)pagesize

4.(int)isOver

5.(string)

flowLevel

6.(string)where

Dynamic->JsonData

?

?

獲取審批列表匯總信息

LoadApprovalListSummary

1.(string)userData

Dynamic->JsonData

?

初始化流程狀態(tài)

InitFlowState

1.string userData

2.string flowNo

3.int appID

4.string formHtml

5.string formData

6.string formUrl

Dynamic->

status = ?

flowID = ?

獲取當(dāng)前步驟信息

GetCurrentStepInfo

1.string userData

2.int approvalID = 0

3.int? flowID = 0

4.int? appID = 0

Dynamic ->

{

status = ?

stepData =?

isBack = ?

isTurnRead =? isTurnRead=?

isTurnDo = ?

};

獲取審批參與者

FindFlowApprovers

1.string userData

2.int flowID

3.int approvalID

4. int appID

5. string toNodeID = ""

Dynamic ->{

status = ?

data = ?

}

獲取審批意見

GetApprovalOpinions

  • int flowID
  • int appID
  • Dynamic ->

    {

    data = ?

    }

    獲取下個節(jié)點(所有)

    GetNextFlowNodes

    1.int flowID

    2.int appID

    3.int approvalID

    Dynamic ->

    {

    status = ?

    ?data = ?

    ?}

    獲取決策方案

    GetFlowDecisionModes

  • int flowID
  • int appID
  • int approvalID
  • Dynamic ->

    {

    status = ?

    ?data = ?

    ?}

    流轉(zhuǎn)主要功能接口

    FlowAction

    1.string userData

    2.string actionType

    3.int stateID

    4.int approvalID

    5.int appID;

    6.bool isPass

    7.string opinion

    8.string formName

    9.string participantJson??????????????? 10.string participantValue??????????????? 11.int level??????????????? 12.int turnToDoID = 0

    Dynamic ->

    {

    status = ?

    ?data = ?

    ?}

    獲取待閱

    列表數(shù)據(jù)

    GetTurnToReadPageList

    1.string userData

    2.int page??????????????? 3.int pagesize

    4.int isRead

    5.string where

    Dynamic->JsonData

    查找傳閱參與者

    FindFlowTurnToReaders

    1.string userData,

    2.int flowID,

    3.string nodeID

    Dynamic ->

    {

    status = ?,

    data = ?

    ?}

    瀏覽傳閱表單

    ReadApprovalForm

    1.tring userData

    2.int approvalID

    Dynamic ->

    {

    status = ?

    }

    獲取傳閱數(shù)據(jù)

    GetTurnToReadList

    int stateID

    Dynamic->JsonData

    獲取代辦參與者數(shù)據(jù)

    FindFlowTurnToApprovers

  • string userData
  • ?int flowID
  • ?string nodeID
  • Dynamic ->

    {

    status = ?,

    data=?

    ?}

    獲取代辦數(shù)據(jù)

    GetTurnToDoPageList

    1.string userData

    2.int pag??????????????? 3.int pagesize???????????????? 4.int isOver???????????????? 5.string where

    Dynamic->JsonData

    獲取流程圖流轉(zhuǎn)標(biāo)記

    GetFlowElementMarked

    1.int flowID

    2. int appID

    Dynamic ->

    {

    status = ?,

    data=?

    ?}

    ?第三步驟 signalr對接

    ?...........

    相關(guān)博文

    轉(zhuǎn)載于:https://www.cnblogs.com/tangxf/p/7741528.html

    總結(jié)

    以上是生活随笔為你收集整理的第三方系统平台如何对接gooflow2.0的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

    如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。