JUnit test of parallel gateway with async before

Hi @cpkrause,

in the JUnit Test, the job executor is disabled by default. The reason for this is to make execution of the process instance as explicit as possible.

You can execute a job explicitly with

execute(job());

if you have only one job. You can add this after each correlation.

If you have multiple jobs in the database, which will be case if you contine after the 4th message, you have to query for the joblist before:

    List<Job> jobList = jobQuery().list();
    for (Job job : jobList) {
      execute(job);
    }

Hope this helps, Ingo

1 Like