I got the process working but got some other problem now. Still, the parallel process is working.
I took out the Thread.sleep, which seemed to cause the issue with the processes going in sequence. Then, I added a timer in the child process and set it to duration PT1M, and it starts all the processes at once and then they all run in parallel.
However, it seems like there’s some new exception coming after the call process, and I can’t figure out why, because I’m not updating any of the variables.
org.camunda.bpm.engine.OptimisticLockingException: ENGINE-03005 Execution of 'UPDATE VariableInstanceEntity[0ac5fc72-4523-11e9-9c45-d481d7c39eff]' failed. Entity was updated by another transaction concurrently.
at org.camunda.bpm.engine.impl.db.EnginePersistenceLogger.concurrentUpdateDbEntityException(EnginePersistenceLogger.java:131)
But here’s the updated BPMN. It doesn’t matter if you have the exclusive gateways or not, it still throws the error.
2019-03-12 17:00:41 - INFO com.proc.task.InitializeParentProc [http-nio-8074-exec-11]
Time:2019-03-12 17:00:41.803 Calling Child Proc:
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:90fadd3e-90bf-4e15-8bb7-7174ff6e0131, field:val=0
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:a6958ad1-a083-4cd1-ab9f-c015992690fb, field:val=1
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:17c7a491-9eb7-46da-b067-22c990b5cbde, field:val=2
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-2]
Child Proc: id:3b14958a-fac5-46df-9676-ecb3f97d66f1, field:val=3
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-2]
Child Proc: id:6e27b5b9-1286-4477-b3c1-a195aa4a5d51, field:val=4
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-2]
Child Proc: id:8f5d9f4f-79e1-486d-88d4-f0f1c4fd1bd5, field:val=5
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-3]
Child Proc: id:ed71022d-a795-4bd7-95d7-a43e14a4265a, field:val=6
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-3]
Child Proc: id:e186c7c4-9b12-46b0-875c-ba5cabf1f284, field:val=7
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-3]
Child Proc: id:dfa397bd-353e-4b3a-a6fe-4b581e1a9911, field:val=8
2019-03-12T17:00:42.248-0700 WARN [cadi] WARNING! BasicAuth has been used over an insecure channel
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:4c826b64-75a1-4c36-8ae0-ce7b498ee6b6, field:val=9
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:d8f068fa-4262-41df-87a4-641e82d80c9b, field:val=10
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:9547b584-8ff4-4ce0-a241-23f1907189cf, field:val=11
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-2]
Child Proc: id:f60cb290-3727-446a-b589-c087aac400c8, field:val=12
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-2]
Child Proc: id:d12630aa-91a6-4746-ac77-476fe5f44b86, field:val=13
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-2]
Child Proc: id:655605b0-c65b-4e63-8870-661f91451680, field:val=14
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-3]
Child Proc: id:233cabd3-93ae-49d3-89fa-84d0b86f7f2c, field:val=15
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-3]
Child Proc: id:a0149455-9349-4ae2-ad12-82f6a2fd9013, field:val=16
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-3]
Child Proc: id:a6e2e125-94cc-410e-8a47-bcc81d0f0590, field:val=17
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:96363467-e7bf-4757-a2ce-a1f568811549, field:val=18
2019-03-12 17:00:42 - INFO com.proc.task.LogItem [camundaTaskExecutor-1]
Child Proc: id:0743b71a-df7d-44dc-9f8a-89a621194564, field:val=19
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 90fadd3e-90bf-4e15-8bb7-7174ff6e0131:val=0
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request a6958ad1-a083-4cd1-ab9f-c015992690fb:val=1
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 17c7a491-9eb7-46da-b067-22c990b5cbde:val=2
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 3b14958a-fac5-46df-9676-ecb3f97d66f1:val=3
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 6e27b5b9-1286-4477-b3c1-a195aa4a5d51:val=4
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 8f5d9f4f-79e1-486d-88d4-f0f1c4fd1bd5:val=5
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request ed71022d-a795-4bd7-95d7-a43e14a4265a:val=6
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request e186c7c4-9b12-46b0-875c-ba5cabf1f284:val=7
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request dfa397bd-353e-4b3a-a6fe-4b581e1a9911:val=8
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 4c826b64-75a1-4c36-8ae0-ce7b498ee6b6:val=9
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request d8f068fa-4262-41df-87a4-641e82d80c9b:val=10
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 9547b584-8ff4-4ce0-a241-23f1907189cf:val=11
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request f60cb290-3727-446a-b589-c087aac400c8:val=12
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request d12630aa-91a6-4746-ac77-476fe5f44b86:val=13
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 655605b0-c65b-4e63-8870-661f91451680:val=14
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 233cabd3-93ae-49d3-89fa-84d0b86f7f2c:val=15
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request a0149455-9349-4ae2-ad12-82f6a2fd9013:val=16
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request a6e2e125-94cc-410e-8a47-bcc81d0f0590:val=17
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 96363467-e7bf-4757-a2ce-a1f568811549:val=18
2019-03-12 17:01:18 - INFO com.proc.task.LogList [camundaTaskExecutor-1]
Request 0743b71a-df7d-44dc-9f8a-89a621194564:val=19
InitializeParentProc.txt (952 Bytes)
LogItem.txt (558 Bytes)
LogList.txt (637 Bytes)
child_proc.bpmn (4.0 KB)
parent_proc.bpmn (6.5 KB)