JBPM 5-人工任务“召回" [英] JBPM 5 - Human Task "Recall"

查看:44
本文介绍了JBPM 5-人工任务“召回"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个业务流程要求,请求者应该能够撤回"他提出的工作流案例.

I have a business process requirement where a requestor should be able to "RECALL" the workflow-case he raised.

流程就像,

  Start ---> Requestor ----> Approver -----> Updater -----> End

Requestor,Approver,Updater是人工任务.

Requestor , Approver , Updater are human tasks.

因此,在Requestor任务完成并转到Approver任务之后(如果未启动),请求者应该能够调用"流程实例,并且流程应返回给Requestor.

So after the Requestor task completed and goes to Approver task (and if it is not STARTED), the requestor should be able to "Recall" the process instance and flow should back to Requestor.

我知道批准者人的任务"的工作项目将可用.如果我中止该工作项(内部任务退出),流程会回到请求者"吗?

I understand that a work-item for Approver "Human Task" will be available. If I abort that work-item (internally task exits), will the flow get back to "Requestor"?

如果它不会倒流,我想知道是否可以在流程定义中添加一些信号处理程序并终止该操作.

If it won't flow back,I am wondering if i can add some signal handlers in the process definition and do that abort.

  Start ---(signal handler to abort Approver task)----> Requestor ----> Approver -----> Updater -----> End

环境:JBoss 7.1.0,JBPM 5.4.0.Final,Drools 5.5.0.Final,Spring 3.0.6.RELEASE

Environment: JBoss 7.1.0, JBPM 5.4.0.Final, Drools 5.5.0.Final, Spring 3.0.6.RELEASE

推荐答案

我看到了使用"

I saw a possiblity to implement this requirement with "Attached Intermediate Events". I have attached a "Intermediate Event" to "Approver" task and on that event the flow comes back to "Requestor".

所以流程变成

Start -------> Requestor ----> Approver (signal handler to go back to Requestor) -----> Updater -----> End

当我将该事件发送到批准者"任务中的流程实例时,流程返回到请求者,并且创建了新任务.

When i sent that event to the process-instance in "Approver" task, the flow came back to Requestor and new task has been created.

但是"批准人"任务仍处于"就绪"状态.如何处理?该信号必须 完成/退出 . 该怎么做?

But the "Approver" task is still in "Ready" state.How to deal with it ? It must complete/exit on this signal. How to do that?

更新1:

我能够使用"<信号中间事件"的" CancelActivity "属性退出任务/活动.因此,在收到信号后,批准"任务为已退出"并流动返回到请求程序"任务.

I was able to exit from the task/activity with the "CancelActivity" property for "Signal Intermediate Event".So on receiving the signal, the "Approver" task is "Exited" and flow returns to the "Requestor" task.

这篇关于JBPM 5-人工任务“召回"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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