How can activiti 6 be rejected?

cancel
Showing results for 
Search instead for 
Did you mean: 
Member II

How can activiti 6 be rejected?

How can activiti 6 be rejected?
The scene is as follows
A, B, C, D
I hope to be able to refute C in the D link. The logs approved before C are still in, but C can be approved again.

Environmental Science:  activiti 6.0  + java1.8

7 Replies
Alfresco Employee

Re: How can activiti 6 be rejected?

Could you post your BPMN diagram and/or XML and any code snippets you might have? I'm afraid it is hard to understand your description.

Active Member

Re: How can activiti 6 be rejected?

I think his English is as pool as me~

I think he want to implement the feature like below

SatrtEvent------UserTask A------UserTask B---------UserTask C--------UserTask D------EndEvent

If the assignee of D agree, the process go to end event. If reject, the process back to C.

But there isn't sequenceFlow from D to C.

In order to solve this problem, we should add a gateway between D and EndEvent when designing the BPMN diagram.

But if B and C will reject too, there are too many gateways and sequenceFlows.

Before 6.x , I solved this problem by pvm. Now I solved this problem by BpmnModel.

I wish I have described what I thought clearly. haha~

Member II

Re: How can activiti 6 be rejected?

是国内的兄弟吗?能 不能把你的代码贴出来?

Member II

Re: How can activiti 6 be rejected?

SatrtEvent------UserTask A------UserTask B---------UserTask C--------UserTask D------EndEvent

When my task node D refuses, it should be returned to the C processing.
Excuse me, is there a API in activiti?
This scene is too common.

Member II

Re: How can activiti 6 be rejected?

Are you still there? Can you put your code out

Member II

Re: How can activiti 6 be rejected?

国内的兄弟,你的问题解决了吗,我也在研究这块,也是用BpmnModel,单线程可以实现,但是有了分支以后,分支同时撤回到主线上,就出问题了,同一个任务出现在多个Execution中,目前还没解决。你怎么弄得

Member II

Re: How can activiti 6 be rejected?

Hi Yuan,i meet the same problem u now!And i used BpmnModel too,then it can solve this problem on the scene of single wire,but if there are any branch,it does not work. It will produce the same task on multiple wires.So can u help me ?How did u solve this problem for multiple wire,can u paste your code out?

Thank u

Best regard