天天看點

.net 工作流引擎 WikeFlowWikeFlow支援流程動态跳轉。。。

給大家介紹一款.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/

流程設計器

.net 工作流引擎 WikeFlowWikeFlow支援流程動态跳轉。。。

實際運用

.net 工作流引擎 WikeFlowWikeFlow支援流程動态跳轉。。。

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", "處理人使用者", "處理意見", "條件");