Activity started twice

I have a problem with an external task which is started twice after the previous task is completed.

What I do:
I have a simple process with some external tasks in a row.

Task1 “Methods-Batch” (topic: methods-batch) → Task 2 (topic: regrep-bais-interface)+ → Task 3
±-> Task 4

When I start the first task (Task 1), I can see a task id. Then I “fetch and lock” the task via the REST-API (providing the topic of the task).

Now I “complete” the task by using the ‘post-complete’ method of the REST-API, providing the task id of Task 1.

Now the second task is supposed is to be started. It does, but twice but it should be only once.

When reading the task list I can see two activities when there only should be one.

What’s wrong? Is it because of the following gateway after Task2? I have no idea.

ACredit-intraday-edited.bpmn (8.4 KB)

Can you upload your model?

I added the model to the original post.
As described: I start task “methods-batch” (Task 1), then fetch-and-lock topic “methods-batch” which delivers a task ID, then I set the task to “complete”. After that the second task “regrep-b-interface” is started twice which is pretty odd.

Any help is very welcome… thank you

I’ve found your problem - you have 2 overlapping sequence flows which are sending 2 tokens to the the second task after the first one have finished doubleSequence

If you remove the second sequence flow it should work as expected.

1 Like

Wow, you are the best, thanks a lot! The model was designed by someone else, and I only looked at the graphical model image.

1 Like