Alfresco Activiti - Create multiple instances of the same subprocess
Asked Answered
P

1

7

I have what seemed like a fairly simple requirement for a process that im beginning to question is even possible.

The image below shows my current process. I am trying to achieve two things:

  1. A user creates an initial user task for adding a note, they should be able to add as many notes as they wish with one user task per note

  2. A new sub-process is spawned for each new note (user task) that the user has created.

Example Process

The process above presents the following problems:

  • A sub-process should be spawned for each task, however they seem to overwrite each other

  • Im not sure if the sub-process requires a unique id for each new sub-process spawned

Pageantry answered 13/1, 2018 at 19:9 Comment(2)
You may need to use separate user task to create another user task , if you will point arrow to previous task then it will overrwrite each other.Apartheid
can you please upload your bpmn.xml file? its hard to just understand with diagram.Hath
H
0
  1. Seems like you are updating only one variable (or a single set of variables) as a result of each task. This will override the previous value. use distinct variables, or append something before each variable to mark it unique for the task/ sub-process completed. see collapsed sub-process

  2. Yes, each sub process gets its own unique execution id, But the main execution ID or process instance ID remains same

Hath answered 22/1, 2018 at 13:17 Comment(1)
Thanks, I think I have figured out the best possible solution for my scenario. See my answer above.Pageantry

© 2022 - 2024 — McMap. All rights reserved.