Cannot resolve identifier defined in generated form

Hi

I am new to Camunda and experiencing some difficulties.

I am trying to assign a user task by completing a generated form at the start of a process that will create a process variable that contains the desired user ID (“RRNR”). This variable is simply accessed in the subsequent task using the expression “${RRNR}” in the “assignee” field.
When installing with Maven, Java throws the following error:

org.camunda.bpm.engine.ProcessEngineException: "Unknown property used in expression: ${RRNR}. Cause: Cannot resolve identifier ‘RRNR’ ".

This does work fine when directly deploying just the DPMD, but I need it to be a Maven Project, since the task listener is used to automatically send an email. This works fine when assigning the task to the user “demo” for example.

In the modeler, this looks something like the pictures below.

Thanks!

Are you running a test or something when maven builds?
If you start the process via a Unit test it would probably throw that error.

Thank you for your answer.

The error does indeed occur when running a unit test, since the test was not designed for this specific case. This gives more insight in how such projects are developped, for which I am grateful.

I would need to see the Unit test code.