给大家介绍一款.net 流程引擎 WikeFlow.
微软官方的WorkFlow入门要求比较高,所以我们萌生了开发一个简单的工作流引擎,帮助.Net coder们解决软件项目中流程的处理。实现写最少的代码,实现最炫酷的功能。
WikeFlow官网:www.wikesoft.cn
WikeFlow演示地址:workflow.wikesoft.com
?
流程设计器
?
实际运用
?
?
?WikeFlow工作流引擎只有两个核心类,FlowDesignService
(流程设计),FlowInstanceService
(流程实例)
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);
?分页查询流程定义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", "处理人用户", "处理意见", "条件");
?
?
?
?