From c36b3051f3d44b4c1a515a226ca933239fc187ca Mon Sep 17 00:00:00 2001 From: iizmg Date: Mon, 13 May 2019 14:26:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- udf-server/udf-demo-server/pom.xml | 28 +++++ .../udf/demo/server/core/SecurityConfig.java | 15 +++ .../udf/demo/server/service/DemoService.java | 15 +++ .../categorize-human-content.bpmn20.bpmn | 115 ++++++++++++++++++ 4 files changed, 173 insertions(+) create mode 100644 udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/core/SecurityConfig.java create mode 100644 udf-server/udf-demo-server/src/main/resources/processes/categorize-human-content.bpmn20.bpmn diff --git a/udf-server/udf-demo-server/pom.xml b/udf-server/udf-demo-server/pom.xml index ed6fb63..6ae7a77 100644 --- a/udf-server/udf-demo-server/pom.xml +++ b/udf-server/udf-demo-server/pom.xml @@ -17,7 +17,20 @@ 9003 8003 + 7.1.0.M1 + + + + + org.activiti.dependencies + activiti-dependencies + ${activiti-dependencies.version} + import + pom + + + @@ -25,6 +38,21 @@ org.itkk.udf udf-starter-core + + + org.activiti + activiti-spring-boot-starter + + + + org.activiti + activiti-image-generator + + + + com.h2database + h2 + diff --git a/udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/core/SecurityConfig.java b/udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/core/SecurityConfig.java new file mode 100644 index 0000000..c2d4e36 --- /dev/null +++ b/udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/core/SecurityConfig.java @@ -0,0 +1,15 @@ +package org.itkk.udf.demo.server.core; + +import org.springframework.context.annotation.Configuration; +import org.springframework.security.config.annotation.web.builders.HttpSecurity; +import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity; +import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter; + +@Configuration +@EnableWebSecurity +public class SecurityConfig extends WebSecurityConfigurerAdapter { + @Override + protected void configure(HttpSecurity http) throws Exception { + http.authorizeRequests().anyRequest().permitAll().and().logout().permitAll(); + } +} diff --git a/udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/service/DemoService.java b/udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/service/DemoService.java index bdce465..5e86c34 100644 --- a/udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/service/DemoService.java +++ b/udf-server/udf-demo-server/src/main/java/org/itkk/udf/demo/server/service/DemoService.java @@ -1,11 +1,26 @@ package org.itkk.udf.demo.server.service; import lombok.extern.slf4j.Slf4j; +import org.activiti.engine.ProcessEngine; +import org.activiti.image.ProcessDiagramGenerator; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @Service @Slf4j public class DemoService { + /** + * 流程引擎 + */ + @Autowired + private ProcessEngine processEngine; + + /** + * 流程图生成器 + */ + @Autowired + private ProcessDiagramGenerator processDiagramGenerator; + public void t1() { log.info("这是日志"); int a = 1 / 0; diff --git a/udf-server/udf-demo-server/src/main/resources/processes/categorize-human-content.bpmn20.bpmn b/udf-server/udf-demo-server/src/main/resources/processes/categorize-human-content.bpmn20.bpmn new file mode 100644 index 0000000..5db9279 --- /dev/null +++ b/udf-server/udf-demo-server/src/main/resources/processes/categorize-human-content.bpmn20.bpmn @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +