Skip to content

Commit

Permalink
update CallActivity comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zuokai666 authored and YORYOR committed Jun 13, 2023
1 parent 1294da7 commit b796e88
Show file tree
Hide file tree
Showing 8 changed files with 69 additions and 12 deletions.
53 changes: 53 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@

# Change Log

All notable changes to this project will be documented in this file.

## [1.1.0] - 2023-03-15

Support CallActivity configuration and execution.

### Added

Add CallActivity Node

## [1.0.2] - 2023-02-20

### Changed

1. Optimize Maven dependency management

-Remove httpclient dependency

-Remove individual jsr250 API dependencies

-Remove individual junit dependencies

-Commons collections 3.2.2-->commons collections 4

-Commons lang3 3.4-->3.12.0

2. Optimize hook function, change HTTP mode to internal call mode, reduce dependence on HTTP packages, and improve performance

3. Simplify the configuration steps for Turbo introduction and add @ enableTurboEngine annotation

4. Optimize partial code structure

5. Optimize Demo Test Execution

## [1.0.1] - 2022-07-08

### Changed

1. Upgrade external dependencies
2. Uniformly manage spring boot starter versions

### Fixed

Fix vulnerabilities

## [1.0.0] - 2020-12-28

### Added

Turbo join open source.
6 changes: 3 additions & 3 deletions demo/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
<parent>
<groupId>com.didiglobal.turbo</groupId>
<artifactId>turbo</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
</parent>

<modelVersion>4.0.0</modelVersion>

<artifactId>demo</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>1.8</java.version>

<spring-boot.version>1.5.10.RELEASE</spring-boot.version>
<turbo.engine.version>1.0.2-SNAPSHOT</turbo.engine.version>
<turbo.engine.version>1.1.0-SNAPSHOT</turbo.engine.version>
<h2.version>1.4.200</h2.version>
</properties>

Expand Down
4 changes: 2 additions & 2 deletions engine/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<modelVersion>4.0.0</modelVersion>

<artifactId>engine</artifactId>
<version>1.0.2-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
<packaging>jar</packaging>

<parent>
<artifactId>turbo</artifactId>
<groupId>com.didiglobal.turbo</groupId>
<version>1.0.2-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
</parent>
<properties>
<groovy.version>2.3.7</groovy.version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ public ElementInstance() {
super();
}

public ElementInstance(String modelKey, int status) {
this(modelKey, status, null, null);
}

public ElementInstance(String modelKey, int status, String nodeInstanceId, String instanceDataId) {
super();
this.modelKey = modelKey;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ public int insert(FlowInstanceMappingPO flowInstanceMappingPO) {
return -1;
}

public void updateStatus(String flowInstanceId, String nodeInstanceId, int status) {
public void updateType(String flowInstanceId, String nodeInstanceId, int type) {
FlowInstanceMappingPO flowInstanceMappingPO = new FlowInstanceMappingPO();
flowInstanceMappingPO.setFlowInstanceId(flowInstanceId);
flowInstanceMappingPO.setNodeInstanceId(nodeInstanceId);
flowInstanceMappingPO.setType(status);
flowInstanceMappingPO.setType(type);
flowInstanceMappingPO.setModifyTime(new Date());
baseMapper.updateStatus(flowInstanceMappingPO);
baseMapper.updateType(flowInstanceMappingPO);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ public interface FlowInstanceMappingMapper extends BaseMapper<FlowInstanceMappin
FlowInstanceMappingPO selectFlowInstanceMappingPO(@Param("flowInstanceId") String flowInstanceId, @Param("nodeInstanceId") String nodeInstanceId);

@Update("UPDATE ei_flow_instance_mapping SET type= #{type}, modify_time= #{modifyTime} WHERE flow_instance_id= #{flowInstanceId} and node_instance_id = #{nodeInstanceId}")
void updateStatus(FlowInstanceMappingPO entity);
void updateType(FlowInstanceMappingPO entity);
}
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ private void updateFlowInstanceMapping(RuntimeContext runtimeContext) {
runtimeContext.setCurrentNodeInstance(newNodeInstanceBO);

FlowInstanceMappingPO oldFlowInstanceMappingPO = flowInstanceMappingDAO.selectFlowInstanceMappingPO(runtimeContext.getFlowInstanceId(), currentNodeInstance.getNodeInstanceId());
flowInstanceMappingDAO.updateStatus(oldFlowInstanceMappingPO.getFlowInstanceId(), oldFlowInstanceMappingPO.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);
flowInstanceMappingDAO.updateType(oldFlowInstanceMappingPO.getFlowInstanceId(), oldFlowInstanceMappingPO.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);

FlowInstanceMappingPO newFlowInstanceMappingPO = new FlowInstanceMappingPO();
BeanUtils.copyProperties(oldFlowInstanceMappingPO, newFlowInstanceMappingPO);
Expand Down Expand Up @@ -321,7 +321,7 @@ private void handleSuccessSubFlowResult(RuntimeContext runtimeContext, RuntimeRe
if (runtimeResult.getStatus() == FlowInstanceStatus.TERMINATED) {
// The subFlow rollback from the StartNode to the MainFlow
currentNodeInstance.setStatus(NodeInstanceStatus.DISABLED);
flowInstanceMappingDAO.updateStatus(runtimeContext.getFlowInstanceId(), currentNodeInstance.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);
flowInstanceMappingDAO.updateType(runtimeContext.getFlowInstanceId(), currentNodeInstance.getNodeInstanceId(), FlowInstanceMappingType.TERMINATED);
} else if (runtimeResult.getStatus() == FlowInstanceStatus.END) {
// The subFlow is completed from the EndNode to the MainFlow
currentNodeInstance.setStatus(NodeInstanceStatus.COMPLETED);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.didiglobal.turbo</groupId>
<artifactId>turbo</artifactId>
<packaging>pom</packaging>
<version>1.0.2-SNAPSHOT</version>
<version>1.1.0-SNAPSHOT</version>
<name>turbo</name>
<description>Turbo is a light-weight flow engine framework, support BPMN2.0</description>
<url>https://www.github.com/didi/turbo</url>
Expand Down

0 comments on commit b796e88

Please sign in to comment.