Skip to content

Commit b796e88

Browse files
zuokai666YORYOR
authored andcommitted
update CallActivity comment
1 parent 1294da7 commit b796e88

File tree

8 files changed

+69
-12
lines changed

8 files changed

+69
-12
lines changed

CHANGELOG.md

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
2+
# Change Log
3+
4+
All notable changes to this project will be documented in this file.
5+
6+
## [1.1.0] - 2023-03-15
7+
8+
Support CallActivity configuration and execution.
9+
10+
### Added
11+
12+
Add CallActivity Node
13+
14+
## [1.0.2] - 2023-02-20
15+
16+
### Changed
17+
18+
1. Optimize Maven dependency management
19+
20+
-Remove httpclient dependency
21+
22+
-Remove individual jsr250 API dependencies
23+
24+
-Remove individual junit dependencies
25+
26+
-Commons collections 3.2.2-->commons collections 4
27+
28+
-Commons lang3 3.4-->3.12.0
29+
30+
2. Optimize hook function, change HTTP mode to internal call mode, reduce dependence on HTTP packages, and improve performance
31+
32+
3. Simplify the configuration steps for Turbo introduction and add @ enableTurboEngine annotation
33+
34+
4. Optimize partial code structure
35+
36+
5. Optimize Demo Test Execution
37+
38+
## [1.0.1] - 2022-07-08
39+
40+
### Changed
41+
42+
1. Upgrade external dependencies
43+
2. Uniformly manage spring boot starter versions
44+
45+
### Fixed
46+
47+
Fix vulnerabilities
48+
49+
## [1.0.0] - 2020-12-28
50+
51+
### Added
52+
53+
Turbo join open source.

demo/pom.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,21 @@
66
<parent>
77
<groupId>com.didiglobal.turbo</groupId>
88
<artifactId>turbo</artifactId>
9-
<version>1.0.2-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
</parent>
1111

1212
<modelVersion>4.0.0</modelVersion>
1313

1414
<artifactId>demo</artifactId>
15-
<version>1.0.2-SNAPSHOT</version>
15+
<version>1.1.0-SNAPSHOT</version>
1616
<packaging>jar</packaging>
1717

1818
<properties>
1919
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
2020
<java.version>1.8</java.version>
2121

2222
<spring-boot.version>1.5.10.RELEASE</spring-boot.version>
23-
<turbo.engine.version>1.0.2-SNAPSHOT</turbo.engine.version>
23+
<turbo.engine.version>1.1.0-SNAPSHOT</turbo.engine.version>
2424
<h2.version>1.4.200</h2.version>
2525
</properties>
2626

engine/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
<modelVersion>4.0.0</modelVersion>
66

77
<artifactId>engine</artifactId>
8-
<version>1.0.2-SNAPSHOT</version>
8+
<version>1.1.0-SNAPSHOT</version>
99
<packaging>jar</packaging>
1010

1111
<parent>
1212
<artifactId>turbo</artifactId>
1313
<groupId>com.didiglobal.turbo</groupId>
14-
<version>1.0.2-SNAPSHOT</version>
14+
<version>1.1.0-SNAPSHOT</version>
1515
</parent>
1616
<properties>
1717
<groovy.version>2.3.7</groovy.version>

engine/src/main/java/com/didiglobal/turbo/engine/bo/ElementInstance.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ public ElementInstance() {
2020
super();
2121
}
2222

23+
public ElementInstance(String modelKey, int status) {
24+
this(modelKey, status, null, null);
25+
}
26+
2327
public ElementInstance(String modelKey, int status, String nodeInstanceId, String instanceDataId) {
2428
super();
2529
this.modelKey = modelKey;

engine/src/main/java/com/didiglobal/turbo/engine/dao/FlowInstanceMappingDAO.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ public int insert(FlowInstanceMappingPO flowInstanceMappingPO) {
4747
return -1;
4848
}
4949

50-
public void updateStatus(String flowInstanceId, String nodeInstanceId, int status) {
50+
public void updateType(String flowInstanceId, String nodeInstanceId, int type) {
5151
FlowInstanceMappingPO flowInstanceMappingPO = new FlowInstanceMappingPO();
5252
flowInstanceMappingPO.setFlowInstanceId(flowInstanceId);
5353
flowInstanceMappingPO.setNodeInstanceId(nodeInstanceId);
54-
flowInstanceMappingPO.setType(status);
54+
flowInstanceMappingPO.setType(type);
5555
flowInstanceMappingPO.setModifyTime(new Date());
56-
baseMapper.updateStatus(flowInstanceMappingPO);
56+
baseMapper.updateType(flowInstanceMappingPO);
5757
}
5858
}

engine/src/main/java/com/didiglobal/turbo/engine/dao/mapper/FlowInstanceMappingMapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@ public interface FlowInstanceMappingMapper extends BaseMapper<FlowInstanceMappin
1717
FlowInstanceMappingPO selectFlowInstanceMappingPO(@Param("flowInstanceId") String flowInstanceId, @Param("nodeInstanceId") String nodeInstanceId);
1818

1919
@Update("UPDATE ei_flow_instance_mapping SET type= #{type}, modify_time= #{modifyTime} WHERE flow_instance_id= #{flowInstanceId} and node_instance_id = #{nodeInstanceId}")
20-
void updateStatus(FlowInstanceMappingPO entity);
20+
void updateType(FlowInstanceMappingPO entity);
2121
}

engine/src/main/java/com/didiglobal/turbo/engine/executor/callactivity/SyncSingleCallActivityExecutor.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ private void updateFlowInstanceMapping(RuntimeContext runtimeContext) {
282282
runtimeContext.setCurrentNodeInstance(newNodeInstanceBO);
283283

284284
FlowInstanceMappingPO oldFlowInstanceMappingPO = flowInstanceMappingDAO.selectFlowInstanceMappingPO(runtimeContext.getFlowInstanceId(), currentNodeInstance.getNodeInstanceId());
285-
flowInstanceMappingDAO.updateStatus(oldFlowInstanceMappingPO.getFlowInstanceId(), oldFlowInstanceMappingPO.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);
285+
flowInstanceMappingDAO.updateType(oldFlowInstanceMappingPO.getFlowInstanceId(), oldFlowInstanceMappingPO.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);
286286

287287
FlowInstanceMappingPO newFlowInstanceMappingPO = new FlowInstanceMappingPO();
288288
BeanUtils.copyProperties(oldFlowInstanceMappingPO, newFlowInstanceMappingPO);
@@ -321,7 +321,7 @@ private void handleSuccessSubFlowResult(RuntimeContext runtimeContext, RuntimeRe
321321
if (runtimeResult.getStatus() == FlowInstanceStatus.TERMINATED) {
322322
// The subFlow rollback from the StartNode to the MainFlow
323323
currentNodeInstance.setStatus(NodeInstanceStatus.DISABLED);
324-
flowInstanceMappingDAO.updateStatus(runtimeContext.getFlowInstanceId(), currentNodeInstance.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);
324+
flowInstanceMappingDAO.updateType(runtimeContext.getFlowInstanceId(), currentNodeInstance.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);
325325
} else if (runtimeResult.getStatus() == FlowInstanceStatus.END) {
326326
// The subFlow is completed from the EndNode to the MainFlow
327327
currentNodeInstance.setStatus(NodeInstanceStatus.COMPLETED);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<groupId>com.didiglobal.turbo</groupId>
77
<artifactId>turbo</artifactId>
88
<packaging>pom</packaging>
9-
<version>1.0.2-SNAPSHOT</version>
9+
<version>1.1.0-SNAPSHOT</version>
1010
<name>turbo</name>
1111
<description>Turbo is a light-weight flow engine framework, support BPMN2.0</description>
1212
<url>https://www.github.com/didi/turbo</url>

0 commit comments

Comments
 (0)