Skip to content

Commit fe847fc

Browse files
committed
Merge remote-tracking branch 'origin/master'
2 parents 5822606 + b128583 commit fe847fc

File tree

36 files changed

+572
-19
lines changed

36 files changed

+572
-19
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
**./target/
2+
/.idea/

bpm/bpm.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />

bpm/compileflow/compileflow.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />

bpm/compileflow/pom.xml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>bpm</artifactId>
7+
<groupId>com.salk</groupId>
8+
<version>1.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>compileflow</artifactId>
13+
14+
<dependencies>
15+
<dependency>
16+
<groupId>com.alibaba.compileflow</groupId>
17+
<artifactId>compileflow</artifactId>
18+
<version>1.1.0</version>
19+
</dependency>
20+
</dependencies>
21+
</project>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<bpm code="Test2" name="test" type="process" description="This is test demo.">
3+
<var name="num" description="入参" dataType="java.lang.Double" inOutType="param"/>
4+
<var name="numSqrt" description="开根号结果" dataType="java.lang.Double" inOutType="return"/>
5+
<start id="1" name="开始" g="115,16,30,30">
6+
<transition g=":-15,20" to="17"/>
7+
</start>
8+
<end id="11" name="结束" g="115,411,30,30"/>
9+
<autoTask id="17" name="计算平方根" g="424,249,88,48">
10+
<transition g=":-15,20" to="11"/>
11+
<action type="java">
12+
<actionHandle clazz="java.lang.Math" method="max">
13+
<var name="input" dataType="double" contextVarName="num" inOutType="param"/>
14+
<var name="output" dataType="double" contextVarName="numSqrt" inOutType="return"/>
15+
</actionHandle>
16+
</action>
17+
</autoTask>
18+
</bpm>
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<bpm code="testktv.bpm" name="test" type="process" description="This is test demo.">
3+
<var name="num" description="入参" dataType="java.lang.Double" inOutType="param"/>
4+
<var name="numSqrt" description="开根号结果" dataType="java.lang.Double" inOutType="return"/>
5+
<start id="1" name="开始" g="115,16,30,30">
6+
<transition g=":-15,20" to="17"/>
7+
</start>
8+
<end id="11" name="结束" g="115,411,30,30"/>
9+
<autoTask id="17" name="计算平方根" g="424,249,88,48">
10+
<transition g=":-15,20" to="11"/>
11+
<action type="java">
12+
<actionHandle clazz="java.lang.Math" method="sqrt">
13+
<var name="input" dataType="double" contextVarName="num" inOutType="param"/>
14+
<var name="output" dataType="double" contextVarName="numSqrt" inOutType="return"/>
15+
</actionHandle>
16+
</action>
17+
</autoTask>
18+
</bpm>

bpm/pom.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
5+
<parent>
6+
<artifactId>code-lib</artifactId>
7+
<groupId>com.salk</groupId>
8+
<version>1.0-SNAPSHOT</version>
9+
</parent>
10+
<modelVersion>4.0.0</modelVersion>
11+
12+
<artifactId>bpm</artifactId>
13+
<packaging>pom</packaging>
14+
<modules>
15+
<module>compileflow</module>
16+
</modules>
17+
18+
19+
</project>

db/db.iml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
package com.salk.lib.db.gbase;
2+
3+
import java.sql.Connection;
4+
import java.sql.DriverManager;
5+
import java.sql.SQLException;
6+
7+
/**
8+
* @author salkli
9+
* @since 2022/8/16
10+
**/
11+
public class GbaseConnectTest {
12+
13+
public static void main(String[] args) {
14+
15+
String url = "jdbc:gbase://124.70.165.153:19088/testdb";
16+
String userName = "gbasedbt";
17+
String pwd = "GBase123";
18+
try {
19+
Class.forName("com.gbase.jdbc.Driver");
20+
} catch (ClassNotFoundException e) {
21+
e.printStackTrace();
22+
}
23+
Connection connection = null;
24+
try {
25+
connection = DriverManager.getConnection(url, userName, pwd);
26+
System.out.println(connection);
27+
28+
} catch (SQLException e) {
29+
e.printStackTrace();
30+
}
31+
}
32+
33+
34+
35+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4" />

0 commit comments

Comments
 (0)