JBPN 工作流程和 % 100 任务完成率
我对 JBPM 流程工作流程有独特的要求。有什么方法可以计算整个工作流程的竞争百分比。一种方法是,我考虑的计算方法是在流程启动时在工作流程开始时向所有节点分配权重,并在每个节点完成时报告%。
在考虑竞争节点的百分比时,需要考虑以下场景。
1) 决策节点
2)异步子流程
<Tab>
<process-definition>
<start-state>
<transition to='s' />
</start-state>
<state name='s'>
<event type='node-leave'>
<action class=EndActionHandler'>
<weight>10</ weight >
</action>
</event>
<transition to='t'/>
</state>
<state name='t'>
<event type='node-leave'>
<action class=EndActionHandler'>
<weight>90</ weight >
</action>
</event>
<transition to='end'/>
</state>
<end-state name='end' />
</process-definition>
</Tab>
I have unique requirement for JBPM process work flow. Is there any way to compute % compete for entire work flow. One way, I was thinking about computing this is to assign weighted to all nodes at begin of workflow when process is started and report the % when each node is complete.
There are following scenarios that need to be accounted when considering the % of node competed.
1) Decision Node
2) Async sub-process
<Tab>
<process-definition>
<start-state>
<transition to='s' />
</start-state>
<state name='s'>
<event type='node-leave'>
<action class=EndActionHandler'>
<weight>10</ weight >
</action>
</event>
<transition to='t'/>
</state>
<state name='t'>
<event type='node-leave'>
<action class=EndActionHandler'>
<weight>90</ weight >
</action>
</event>
<transition to='end'/>
</state>
<end-state name='end' />
</process-definition>
</Tab>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在我看来,最简单的方法是在操作类本身中执行此操作。
例如,您可以创建一个流变量,将其保留到 jBPM 上下文中,以跟踪流程实例在流程中的情况。
It seems to me like the easiest way to do this would be to do this within the action classes themselves.
For example, you could create a flow variable that you persist to the jBPM context that keeps track of how the process instance is in the process.