org.camunda.bpm.spring.boot.starter.event.PostDeployEvent Java Examples

The following examples show how to use org.camunda.bpm.spring.boot.starter.event.PostDeployEvent. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: CamundaApplication.java    From camunda-bpm-identity-keycloak with Apache License 2.0 5 votes vote down vote up
/**
 * Post deployment work.
 * @param event
 */
@EventListener
public void onPostDeploy(PostDeployEvent event) {
	LOG.info("========================================");
	LOG.info("Successfully started Camunda Showcase");
	LOG.info("========================================");
}
 
Example #2
Source File: MainApplication.java    From camunda-bpm-swagger with Apache License 2.0 5 votes vote down vote up
@EventListener
public void run(PostDeployEvent event) {
  event.getProcessEngine().getRepositoryService().createDeployment()
    .addModelInstance("dummy.bpmn", Bpmn.createExecutableProcess("dummy")
      .startEvent()
      .userTask("task").name("Do Stuff")
      .endEvent()
    .done())
    .deploy();

}
 
Example #3
Source File: SpringBootProcessApplication.java    From camunda-bpm-spring-boot-starter with Apache License 2.0 4 votes vote down vote up
@PostDeploy
public void onPostDeploy(ProcessEngine processEngine) {
  eventPublisher.publishEvent(new PostDeployEvent(processEngine));
}
 
Example #4
Source File: ProcessApplicationIT.java    From camunda-bpm-spring-boot-starter with Apache License 2.0 4 votes vote down vote up
@EventListener
public void eventOccurred(PostDeployEvent event) {
  this.postDeployEventOccurred = true;
}
 
Example #5
Source File: Application.java    From camunda-bpm-spring-boot-starter with Apache License 2.0 4 votes vote down vote up
@EventListener
public void onPostDeploy(PostDeployEvent event) {
  invoicePa.startFirstProcess(event.getProcessEngine());
}
 
Example #6
Source File: SpringBootProcessApplication.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@PostDeploy
public void onPostDeploy(ProcessEngine processEngine) {
  eventPublisher.publishEvent(new PostDeployEvent(processEngine));
}
 
Example #7
Source File: Application.java    From camunda-bpm-platform with Apache License 2.0 4 votes vote down vote up
@EventListener
public void onPostDeploy(PostDeployEvent event) {
  invoicePa.startFirstProcess(event.getProcessEngine());
}
 
Example #8
Source File: ProcessApplicationIT.java    From camunda-bpm-platform with Apache License 2.0 3 votes vote down vote up
@EventListener
public void eventOccurred(PostDeployEvent event) {
  this.postDeployEventOccurred = true;
}