|
|
@ -1,6 +1,8 @@ |
|
|
|
package com.cloud.kicc.workflow.config; |
|
|
|
package com.cloud.kicc.workflow.config; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import com.cloud.kicc.workflow.override.BpmnTenantProvider; |
|
|
|
import com.cloud.kicc.workflow.parser.factory.WorkflowActivityBehaviorFactory; |
|
|
|
import com.cloud.kicc.workflow.parser.factory.WorkflowActivityBehaviorFactory; |
|
|
|
|
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import org.flowable.spring.SpringProcessEngineConfiguration; |
|
|
|
import org.flowable.spring.SpringProcessEngineConfiguration; |
|
|
|
import org.flowable.spring.boot.EngineConfigurationConfigurer; |
|
|
|
import org.flowable.spring.boot.EngineConfigurationConfigurer; |
|
|
|
import org.flowable.spring.boot.FlowableProperties; |
|
|
|
import org.flowable.spring.boot.FlowableProperties; |
|
|
@ -24,10 +26,15 @@ import org.springframework.context.annotation.Primary; |
|
|
|
@Configuration |
|
|
|
@Configuration |
|
|
|
@ComponentScan({ "org.flowable.ui.modeler", "org.flowable.ui.common" }) |
|
|
|
@ComponentScan({ "org.flowable.ui.modeler", "org.flowable.ui.common" }) |
|
|
|
@EnableConfigurationProperties(FlowableProperties.class) |
|
|
|
@EnableConfigurationProperties(FlowableProperties.class) |
|
|
|
|
|
|
|
@RequiredArgsConstructor |
|
|
|
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> { |
|
|
|
public class FlowableConfig implements EngineConfigurationConfigurer<SpringProcessEngineConfiguration> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private final BpmnTenantProvider bpmnTenantProvider; |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void configure(SpringProcessEngineConfiguration engineConfiguration) { |
|
|
|
public void configure(SpringProcessEngineConfiguration engineConfiguration) { |
|
|
|
|
|
|
|
// Bpmn租户配置
|
|
|
|
|
|
|
|
engineConfiguration.setDefaultTenantProvider(new BpmnTenantProvider()); |
|
|
|
|
|
|
|
|
|
|
|
// 流程图字体设置
|
|
|
|
// 流程图字体设置
|
|
|
|
engineConfiguration.setActivityFontName("华文细黑"); |
|
|
|
engineConfiguration.setActivityFontName("华文细黑"); |
|
|
@ -48,7 +55,6 @@ public class FlowableConfig implements EngineConfigurationConfigurer<SpringProce |
|
|
|
|
|
|
|
|
|
|
|
// 配置工作流活动行为工厂
|
|
|
|
// 配置工作流活动行为工厂
|
|
|
|
engineConfiguration.setActivityBehaviorFactory(new WorkflowActivityBehaviorFactory()); |
|
|
|
engineConfiguration.setActivityBehaviorFactory(new WorkflowActivityBehaviorFactory()); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Bean |
|
|
|
@Bean |
|
|
|