Link Cawemo to the process engine in springboot

Dear gentle reader,
I’m following the instructions here:

in order to plug my process engine processes to cawemo, with springboot.

It states to register the engine plugin as a bean:

@Bean
@Order(Ordering.DEFAULT_ORDER + 1)
public static ProcessEnginePlugin cawemoEnginePlugin() {
  CawemoEnginePlugin plugin = new CawemoEnginePlugin();
  plugin.setCawemoUrl("https://cawemo.com");
  plugin.setUserId("change-me");
  plugin.setApiKey("change-me");
  plugin.setProjectName("change-me");
  plugin.setAuthMode("BASIC"); // or "QUERY_PARAM"
  plugin.setCustomBasicAuth(false);

  return plugin;
}

But where can I put this bean? At the moment I placed it under the main method of the CamundaApplication class but it doesn’t work.
Any help could be very appreciated,
kind regards,
Anna

Hi @Anna_Setiva,

try this.

@Configuration
public class AppConfig {

@Bean
@Order(Ordering.DEFAULT_ORDER + 1)
public static ProcessEnginePlugin cawemoEnginePlugin() {
  CawemoEnginePlugin plugin = new CawemoEnginePlugin();
  plugin.setCawemoUrl("https://cawemo.com");
  plugin.setUserId("change-me");
  plugin.setApiKey("change-me");
  plugin.setProjectName("change-me");
  plugin.setAuthMode("BASIC"); // or "QUERY_PARAM"
  plugin.setCustomBasicAuth(false);

  return plugin;
}
}
1 Like

Thank you @dittmeister .
I created a class AppConfig as you suggested and run the springboot application.
Now I check in the cawemo folder but no diagram is created.
Am I missing something more?
Thanks!