code: @PostDeploy
    public void startFirstProcess(ProcessEngine processEngine) {
  	processEngine = BpmPlatform.getProcessEngineService().getProcessEngine("anders");
  
      createUsers(processEngine);
      startProcessInstances(processEngine, "invoice", 1);
      startProcessInstances(processEngine, "invoice", null);
      for (int i=0; i<1000; i++) {
      	startProcessInstances(processEngine, "invoice", null);
      }
    }
docs: In a @PostDeploy Hook you can interact with the process engine and access
  the processes the application has deployed.