package de.blogspot.wrongtracks.example;

import org.camunda.bpm.application.ProcessApplication;
import org.camunda.bpm.extension.osgi.application.OSGiProcessApplication;
import org.osgi.framework.BundleContext;
import org.osgi.service.blueprint.container.BlueprintContainer;

@ProcessApplication(name="MyProcessApplication")
public class ExampleProcessApplication extends OSGiProcessApplication {
  
  public ExampleProcessApplication(BundleContext ctx, BlueprintContainer blueprintContainer) {
    super(ctx.getBundle(), blueprintContainer);
  }
}

@@ -71,33 +71,125 @@
 cation.P
-rocessApplication
+ostDeploy;%0Aimport org.camunda.bpm.application.ProcessApplication;%0Aimport org.camunda.bpm.engine.ProcessEngine
 ;%0Aimport
@@ -632,11 +632,167 @@
 er);%0A  %7D
+%0A%0A  @PostDeploy%0A  public void executeProcess(ProcessEngine processEngine)%7B%0A    processEngine.getRuntimeService().startProcessInstanceByKey(%22Process_1%22);%0A  %7D
 %0A%7D%0A

Add method for starting the process after deploying it