Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add process business views dependencies #296

Merged
merged 4 commits into from
Dec 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions core/api/src/main/java/com/wansenai/api/config/FlowableConfig.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
/*
* Copyright 2023-2033 WanSen AI Team, Inc. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance
* with the License. A copy of the License is located at
*
* http://opensource.wansenai.com/apache2.0/
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES
* OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package com.wansenai.api.config;

import org.flowable.spring.SpringProcessEngineConfiguration;
import org.flowable.spring.boot.EngineConfigurationConfigurer;
import org.springframework.context.annotation.Configuration;

@Configuration
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> {
/**
* 防止生成的流程图中文乱码
* @param springProcessEngineConfiguration
*/
@Override
public void configure(SpringProcessEngineConfiguration springProcessEngineConfiguration) {
springProcessEngineConfiguration.setActivityFontName("宋体");
springProcessEngineConfiguration.setLabelFontName("宋体");
springProcessEngineConfiguration.setAnnotationFontName("宋体");
}
}
5 changes: 4 additions & 1 deletion core/api/src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,7 @@ spring:
max-wait: 100
max-idle: 20
min-idle: 5
timeout: 10000
timeout: 10000
flowable:
async-executor-activate: true
database-schema-update: true
6 changes: 5 additions & 1 deletion core/api/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,8 @@ spring:
max-active: 32 #最大连接数据库连接数,设 0 为没有限制
max-idle: 16 #最大等待连接中的数量,设 0 为没有限制
max-wait: 300ms #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
min-idle: 16 #最小等待连接中的数量,设 0 为没有限制
min-idle: 16 #最小等待连接中的数量,设 0 为没有限制

flowable:
async-executor-activate: false
database-schema-update: true
5 changes: 5 additions & 0 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.flowable</groupId>
<artifactId>flowable-spring-boot-starter</artifactId>
<version>6.7.2</version>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
Expand Down
8 changes: 7 additions & 1 deletion web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,13 @@
"vxe-table": "^4.5.14",
"vxe-table-plugin-export-xlsx": "3.1.0",
"xe-utils": "^3.5.11",
"xlsx": "^0.18.5"
"xlsx": "^0.18.5",
"bpmn-js": "^16.1.0",
"@bpmn-io/properties-panel": "^3.13.0",
"bpmn-js-properties-panel": "^5.6.1",
"camunda-bpmn-moddle": "^7.0.1",
"diagram-js-grid-bg": "^1.0.3",
"diagram-js-minimap": "4.1.0"
},
"devDependencies": {
"@commitlint/cli": "^17.6.6",
Expand Down
Loading