#BAEL-5948:rename module name from spring-boot-libraries-3 to spring-boot-process-automation
This commit is contained in:
+13
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
+19
@@ -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
|
||||
+67
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<bpmn:definitions xmlns:bpmn="http://www.omg.org/spec/BPMN/20100524/MODEL" xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI" xmlns:di="http://www.omg.org/spec/DD/20100524/DI" xmlns:dc="http://www.omg.org/spec/DD/20100524/DC" xmlns:camunda="http://camunda.org/schema/1.0/bpmn" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="Definitions_1" targetNamespace="http://bpmn.io/schema/bpmn" exporter="Camunda Modeler" exporterVersion="5.3.0">
|
||||
<bpmn:process id="loanRequest" isExecutable="true">
|
||||
<bpmn:startEvent id="StartEvent_1">
|
||||
<bpmn:outgoing>SequenceFlow_14bdz4q</bpmn:outgoing>
|
||||
</bpmn:startEvent>
|
||||
<bpmn:sequenceFlow id="SequenceFlow_14bdz4q" sourceRef="StartEvent_1" targetRef="ServiceTask_1tvk8uj" />
|
||||
<bpmn:endEvent id="EndEvent_1y4bj2w">
|
||||
<bpmn:incoming>SequenceFlow_1s49wir</bpmn:incoming>
|
||||
</bpmn:endEvent>
|
||||
<bpmn:sequenceFlow id="SequenceFlow_0d726xt" sourceRef="ServiceTask_1tvk8uj" targetRef="UserTask_0eay4mh" />
|
||||
<bpmn:sequenceFlow id="SequenceFlow_1s49wir" sourceRef="UserTask_0eay4mh" targetRef="EndEvent_1y4bj2w" />
|
||||
<bpmn:userTask id="UserTask_0eay4mh" name="Approve Loan">
|
||||
<bpmn:incoming>SequenceFlow_0d726xt</bpmn:incoming>
|
||||
<bpmn:outgoing>SequenceFlow_1s49wir</bpmn:outgoing>
|
||||
</bpmn:userTask>
|
||||
<bpmn:serviceTask id="ServiceTask_1tvk8uj" name="Calculate Interest" camunda:delegateExpression="${calculateInterestService}">
|
||||
<bpmn:incoming>SequenceFlow_14bdz4q</bpmn:incoming>
|
||||
<bpmn:outgoing>SequenceFlow_0d726xt</bpmn:outgoing>
|
||||
</bpmn:serviceTask>
|
||||
</bpmn:process>
|
||||
<bpmndi:BPMNDiagram id="BPMNDiagram_1">
|
||||
<bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="loanRequest">
|
||||
<bpmndi:BPMNShape id="_BPMNShape_StartEvent_2" bpmnElement="StartEvent_1">
|
||||
<dc:Bounds x="173" y="102" width="36" height="36" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="156" y="138" width="70" height="27" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="EndEvent_1y4bj2w_di" bpmnElement="EndEvent_1y4bj2w">
|
||||
<dc:Bounds x="625" y="102" width="36" height="36" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="606" y="138" width="75" height="14" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="ServiceTask_1tvk8uj_di" bpmnElement="ServiceTask_1tvk8uj">
|
||||
<dc:Bounds x="275" y="80" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNShape id="UserTask_0eay4mh_di" bpmnElement="UserTask_0eay4mh">
|
||||
<dc:Bounds x="453" y="80" width="100" height="80" />
|
||||
<bpmndi:BPMNLabel />
|
||||
</bpmndi:BPMNShape>
|
||||
<bpmndi:BPMNEdge id="SequenceFlow_14bdz4q_di" bpmnElement="SequenceFlow_14bdz4q">
|
||||
<di:waypoint x="209" y="120" />
|
||||
<di:waypoint x="275" y="120" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="197" y="95" width="90" height="20" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="SequenceFlow_0d726xt_di" bpmnElement="SequenceFlow_0d726xt">
|
||||
<di:waypoint x="375" y="120" />
|
||||
<di:waypoint x="453" y="120" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="366" y="95" width="90" height="20" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNEdge>
|
||||
<bpmndi:BPMNEdge id="SequenceFlow_1s49wir_di" bpmnElement="SequenceFlow_1s49wir">
|
||||
<di:waypoint x="553" y="120" />
|
||||
<di:waypoint x="625" y="120" />
|
||||
<bpmndi:BPMNLabel>
|
||||
<dc:Bounds x="544" y="95" width="90" height="20" />
|
||||
</bpmndi:BPMNLabel>
|
||||
</bpmndi:BPMNEdge>
|
||||
</bpmndi:BPMNPlane>
|
||||
</bpmndi:BPMNDiagram>
|
||||
</bpmn:definitions>
|
||||
Reference in New Issue
Block a user