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