如何设计剔除流程? [英] How to design the reject flow?

查看:57
本文介绍了如何设计剔除流程?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在WF4中,我们可以使用流程图来设计流程,但这有一定的局限性.

例如:如果我的文档处理为A(提交)-> B(第1级批准)-> C(第2级批准).....--> N(第n级批准)->结束.在每个中间状态下,它都可以批准或拒绝.

在每个状态(B,C,... N)都有一个FlowDecision之后的工作流中.当条件被批准时,它进入下一个状态,当条件被拒绝给A.所以我有很多FlowDecision.it看起来很丑.

该如何设计?

如何设计一个用户自定义活动,它可以设置条件,不同的条件可以进入不同的状态,并且可以设置是否显示拒绝行?

 

解决方案

Hello binarycary

解决特定问题的一种可能方法是创建自定义本地活动.本机活动可以包含子活动(它们是您批准的活动)的集合,并在安排下一个批准活动之前检查条件.如果其中一位批准者拒绝了该文档,则可以进行自定义活动,而不安排其他剩余的批准活动,并将该文档标记为已拒绝.这样,在这种情况下,您的流程图将只需要一个flowDecision.

为了保持您的设计体验整洁,您可能需要在自定义设计器中使用WorkflowItemsPresenter来进行活动.以获得良好的拖放体验.

希望这会有所帮助,

Eric

 


in WF4 we can use flowchart to design our flow.but it is have some limitation.

for example: If i have a document process which is A(submit)-->B(level 1 approve)->C(level 2 approve).....-->N(level n approve)-->end. in the every middle state it can approve or reject.

in my workflow after every state(B,C,...N) has a FlowDecision .when condition is approve it go to next state,when condition is reject it to A.so I have a lot of FlowDecision.it looks very ugly.

how to design this?

how to design a custome acitivity.it can set condition ,and different condition can go to different state.and we can set whether show the reject line?

 

解决方案

Hello binarycary

One possible solution to your specific issue is to create a custom native activity.  The native activity can contain a collection of child activities (which are your approve activities) and check the condition before scheduling the next approve activity.  If one of the approvers rejects the document, you can then have the custom activity not schedule the remaining approve activities and flag the document as rejected.  Your flowchart would then only need a single flowDecision in this case.

In order to keep your design experience clean though, you'll probably want to make use of the WorkflowItemsPresenter in your custom designer for your activity in order to have a nice drag drop experience.

Hope this helps,

Eric

 


这篇关于如何设计剔除流程?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆