#BAEL-5948:add main source code
This commit is contained in:
parent
68c5a730eb
commit
e3f229f61d
|
@ -0,0 +1,13 @@
|
|||
package com.baeldung.camunda;
|
||||
|
||||
import org.springframework.boot.SpringApplication;
|
||||
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||
|
||||
@SpringBootApplication
|
||||
public class CamundaApplication {
|
||||
|
||||
public static void main(String[] args) {
|
||||
SpringApplication.run(CamundaApplication.class, args);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package com.baeldung.camunda.task;
|
||||
|
||||
import org.camunda.bpm.engine.delegate.DelegateExecution;
|
||||
import org.camunda.bpm.engine.delegate.JavaDelegate;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Component
|
||||
public class CalculateInterestService implements JavaDelegate {
|
||||
|
||||
private static final Logger LOGGER = LoggerFactory.getLogger(CalculateInterestService.class);
|
||||
|
||||
@Override
|
||||
public void execute(DelegateExecution execution) {
|
||||
LOGGER.info("calculating interest of the loan");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
spring.datasource.url: jdbc:h2:file:./camunda-h2-database
|
||||
|
||||
camunda.bpm.admin-user:
|
||||
id: demo
|
||||
password: demo
|
Loading…
Reference in New Issue