給大家介紹一款.net 流程引擎 WikeFlow.
微軟官方的WorkFlow入門要求比較高,是以我們萌生了開發一個簡單的工作流引擎,幫助.Net coder們解決軟體項目中流程的處理。實作寫最少的代碼,實作最炫酷的功能。
WikeFlow支援流程動态跳轉。。。
WikeFlow官網:www.wikesoft.com
WikeFlow示範位址:workflow.wikesoft.com
WikeFlow2.0示範位址:workflow2.wikesoft.com
WikeFlow2.0幫助文檔:http://wikeflowhelp.wikesoft.com/
流程設計器

實際運用
WikeFlow工作流引擎隻有兩個核心類,
FlowDesignService
(流程設計),
FlowInstanceService
(流程執行個體)
1.
FlowDesignService
-
添加流程定義string AddFlowDef(FlowDefModel flowDef);
-
修改流程定義FlowMessage UpdateFlowDef(FlowDefModel model);
-
删除流程定義FlowMessage DeleteFlowDef(IList ids)
-
得到流程定義對象FlowDefModel GetFlowDef(string id);
-
儲存流程設定FlowMessage SaveDiagram(FlowModel flowDef);
-
傳回流程圖Bitmap GetBitmap(string flowDefId);
-
分頁查詢流程定義PagedResult GetList(FlowDefFilter filter);
2.
FlowInstanceService
-
建立執行個體InstanceMessage CreateInstance(string flowDefKey,string userId, string userName,string condition)
-
處理流程InstanceMessage Complete(string nodeRecordId,string userId,string userName,string userMsg,string condition)
-
得到目前運作的執行個體FlowInstance GetRunFlowInstance(string flowId);
-
得到曆史流程處理記錄清單List GetHistoryFlowInstances(string flowId);
-
得到運作中的流程圖Bitmap GetRunBitmap(string flowId)
發起流程
InstanceMessage flowInstance = _flowInstanceService.CreateInstance("flow_holiday", "建立人使用者ID", "管理者", "條件");
處理流程
_flowInstanceService.Complete("節點ID", "處理人使用者ID", "處理人使用者", "處理意見", "條件");