#BAEL-5948:add main source code

This commit is contained in:
h_sharifi 2022-11-27 10:50:29 +03:30
parent 68c5a730eb
commit e3f229f61d
3 changed files with 37 additions and 0 deletions

View File

@ -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);
}
}

View File

@ -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");
}
}

View File

@ -0,0 +1,5 @@
spring.datasource.url: jdbc:h2:file:./camunda-h2-database
camunda.bpm.admin-user:
id: demo
password: demo