Process executing tasks in another process

Hi
I have two spring boot starter applications each deploying a Camunda instance, using a shared database.
The processes are very basic the first one (order-import) sends a message using Kafka and the second one (prescription-flow) receives that message.

All good until I get the following error in the console of project number 2.
Caused by: org.camunda.bpm.engine.impl.javax.el.PropertyNotFoundException: Cannot resolve identifier 'processDocumentsFolder'.

processDocumentsFolder is defined in process number 1. Why is the error appearing in the console of project number 2?

When switching to each project using its own database then everything works fine.

I attached the process for reference:
prescription-flow.bpmn (2.3 KB) order-import.bpmn (3.1 KB)

Thank you

It might be useful to read about the full affects of connection 2 nodes to the same database. It’s detailed here in the docs. Both nodes will share the same state and pick up work from the same table. So whats probably happening is that something is being started in node 1, then when it’s committed to the Database node 2 picks up the job but is unable to do it realizes it doesn’t have the resources.