Browse Source

增加流程设计器

test
smallchill 6 years ago
parent
commit
43a454cc30
  1. 15
      blade-ops/blade-flowable/Dockerfile
  2. 30
      blade-ops/blade-flowable/pom.xml
  3. 38
      blade-ops/blade-flowable/src/main/java/org/springblade/flowable/FlowableApplication.java
  4. 10
      blade-ops/blade-flowable/src/main/resources/application-dev.yml
  5. 10
      blade-ops/blade-flowable/src/main/resources/application-prod.yml
  6. 10
      blade-ops/blade-flowable/src/main/resources/application-test.yml
  7. 15
      blade-ops/blade-flowdesign/Dockerfile
  8. 86
      blade-ops/blade-flowdesign/pom.xml
  9. 17
      blade-ops/blade-flowdesign/src/main/java/org/springblade/flowable/constant/FlowableConstant.java
  10. 2
      blade-ops/pom.xml
  11. 11
      pom.xml

15
blade-ops/blade-flowable/Dockerfile

@ -0,0 +1,15 @@
FROM anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER smallchill@163.com
RUN mkdir -p /blade/admin
WORKDIR /blade/admin
EXPOSE 7002
ADD ./target/blade-flowable.jar ./app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
CMD ["--spring.profiles.active=test"]

30
blade-ops/blade-flowable/pom.xml

@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>blade-ops</artifactId>
<groupId>org.springblade</groupId>
<version>2.0.0.RC8</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>blade-flowable</artifactId>
<name>${project.artifactId}</name>
<version>${bladex.project.version}</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-core-boot</artifactId>
<version>${bladex.tool.version}</version>
</dependency>
<dependency>
<groupId>org.springblade</groupId>
<artifactId>blade-common</artifactId>
<version>${bladex.project.version}</version>
</dependency>
</dependencies>
</project>

38
blade-ops/blade-flowable/src/main/java/org/springblade/flowable/FlowableApplication.java

@ -0,0 +1,38 @@
/*
* Copyright (c) 2018-2028, Chill Zhuang All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice,
* this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* Neither the name of the dreamlu.net developer nor the names of its
* contributors may be used to endorse or promote products derived from
* this software without specific prior written permission.
* Author: Chill 庄骞 (smallchill@163.com)
*/
package org.springblade.flowable;
import org.springblade.core.cloud.feign.EnableBladeFeign;
import org.springblade.core.launch.BladeApplication;
import org.springblade.core.launch.constant.AppConstant;
import org.springframework.cloud.client.SpringCloudApplication;
/**
* Flowable启动器
*
* @author Chill
*/
@EnableBladeFeign
@SpringCloudApplication
public class FlowableApplication {
public static void main(String[] args) {
BladeApplication.run(AppConstant.APPLICATION_FLOWABLE_NAME, FlowableApplication.class, args);
}
}

10
blade-ops/blade-flowable/src/main/resources/application-dev.yml

@ -0,0 +1,10 @@
#服务器端口
server:
port: 8008
#数据源配置
spring:
datasource:
url: ${blade.datasource.dev.url}
username: ${blade.datasource.dev.username}
password: ${blade.datasource.dev.password}

10
blade-ops/blade-flowable/src/main/resources/application-prod.yml

@ -0,0 +1,10 @@
#服务器端口
server:
port: 8008
#数据源配置
spring:
datasource:
url: ${blade.datasource.prod.url}
username: ${blade.datasource.prod.username}
password: ${blade.datasource.prod.password}

10
blade-ops/blade-flowable/src/main/resources/application-test.yml

@ -0,0 +1,10 @@
#服务器端口
server:
port: 8008
#数据源配置
spring:
datasource:
url: ${blade.datasource.test.url}
username: ${blade.datasource.test.username}
password: ${blade.datasource.test.password}

15
blade-ops/blade-flowdesign/Dockerfile

@ -0,0 +1,15 @@
FROM anapsix/alpine-java:8_server-jre_unlimited
MAINTAINER smallchill@163.com
RUN mkdir -p /blade/admin
WORKDIR /blade/admin
EXPOSE 7002
ADD ./target/blade-flowdesign.jar ./app.jar
ENTRYPOINT ["java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "app.jar"]
CMD ["--spring.profiles.active=test"]

86
blade-ops/blade-flowdesign/pom.xml

@ -0,0 +1,86 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<parent>
<artifactId>blade-ops</artifactId>
<groupId>org.springblade</groupId>
<version>2.0.0.RC8</version>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>blade-flowdesign</artifactId>
<name>${project.artifactId}</name>
<version>${bladex.project.version}</version>
<packaging>jar</packaging>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-configuration-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>net.sourceforge.nekohtml</groupId>
<artifactId>nekohtml</artifactId>
</dependency>
<dependency>
<groupId>org.liquibase</groupId>
<artifactId>liquibase-core</artifactId>
</dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter-process</artifactId>
<version>${flowable.version}</version>
</dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-ui-modeler-rest</artifactId>
<version>${flowable.version}</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>8.0.15</version>
</dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>1.1.16</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>${docker.plugin.version}</version>
<configuration>
<imageName>${docker.registry.url}/blade/${project.artifactId}:${project.version}</imageName>
<dockerDirectory>${project.basedir}</dockerDirectory>
<dockerHost>${docker.registry.host}</dockerHost>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
<registryUrl>${docker.registry.url}</registryUrl>
<serverId>${docker.registry.url}</serverId>
<pushImage>true</pushImage>
</configuration>
</plugin>
</plugins>
</build>
</project>

17
blade-ops/blade-flowdesign/src/main/java/org/springblade/flowable/constant/FlowableConstant.java

@ -0,0 +1,17 @@
package org.springblade.flowable.constant;
/**
* Flowable常量
*
* @author Chill
*/
public interface FlowableConstant {
String BASE_PACHAGE = "org.springblade";
String FLOWABLE_BASE_PACKAGE = "org.flowable.ui";
String css = ".css";
String js = ".js";
String jpg = ".jpg";
String png = ".png";
String app = "/app";
}

2
blade-ops/pom.xml

@ -14,6 +14,8 @@
<modules>
<module>blade-admin</module>
<module>blade-develop</module>
<module>blade-flowable</module>
<module>blade-flowdesign</module>
</modules>
</project>

11
pom.xml

@ -19,6 +19,7 @@
<mybatis.plus.version>3.1.0</mybatis.plus.version>
<curator.framework.version>4.0.1</curator.framework.version>
<protostuff.version>1.6.0</protostuff.version>
<flowable.version>6.4.1</flowable.version>
<alibaba.cloud.version>0.2.1.RELEASE</alibaba.cloud.version>
<spring.boot.admin.version>2.1.2</spring.boot.admin.version>
@ -132,6 +133,11 @@
</build>
<repositories>
<repository>
<id>release</id>
<name>Release Repository</name>
<url>http://nexus.gitee.ltd/repository/maven-releases/</url>
</repository>
<repository>
<id>aliyun-repos</id>
<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
@ -139,11 +145,6 @@
<enabled>false</enabled>
</snapshots>
</repository>
<repository>
<id>release</id>
<name>Release Repository</name>
<url>http://nexus.gitee.ltd/repository/maven-releases/</url>
</repository>
</repositories>
<pluginRepositories>

Loading…
Cancel
Save