Activiti配置详解
来源:互联网 发布:淘宝售后客服话术大全 编辑:程序博客网 时间:2024/06/14 21:02
activiti配置:
<?xml version="1.0" encoding="UTF-8"?><beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd"> <!--包扫描( 配置 编辑器 服务 )--> <context:component-scan base-package="org.activiti.conf,org.activiti.rest.editor,org.activiti.rest.service"> <context:exclude-filter type="annotation" expression="org.springframework.stereotype.Controller"/> </context:component-scan> <!-- 单例json对象 --> <bean id="objectMapper" class="com.fasterxml.jackson.databind.ObjectMapper"/> <!-- 引擎内部提供的UUID生成器,依赖fastxml的java-uuid-generator模块 --> <bean id="uuidGenerator" class="org.activiti.engine.impl.persistence.StrongUuidGenerator" /> <!-- Activiti begin --> <bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration"> <property name="dataSource" ref="dataSource"/> <property name="transactionManager" ref="transactionManager"/> <property name="databaseSchemaUpdate" value="true"/> <property name="jobExecutorActivate" value="true"/> <!--<property name="history" value="full"/>--> <property name="processDefinitionCacheLimit" value="10"/> <!-- mail --> <property name="mailServerHost" value="localhost"/> <property name="mailServerUsername" value="test"/> <property name="mailServerPassword" value="000000"/> <property name="mailServerPort" value="2025"/> <!-- UUID作为主键生成策略 <property name="idGenerator" ref="uuidGenerator" /> --> <!-- 生成流程图的字体 --> <property name="activityFontName" value="${diagram.activityFontName}"/> <property name="labelFontName" value="${diagram.labelFontName}"/> <!-- 自动部署 --> <property name="deploymentResources"> <list> <value>classpath*:/deployments/*</value> </list> </property> <!-- 自定义表单字段类型 --> <property name="customFormTypes"> <list> <bean class="me.kafeitu.demo.activiti.activiti.form.UsersFormType"/> </list> </property> <!-- JPA --> <property name="jpaEntityManagerFactory" ref="entityManagerFactory" /> <property name="jpaHandleTransaction" value="false" /> <property name="jpaCloseEntityManager" value="false" /> <!-- 全局事件 --> <property name="typedEventListeners"> <map> <entry key="VARIABLE_CREATED" > <list> <ref bean="variableCreateListener"/> </list> </entry> </map> </property> </bean> <bean id="processEngine" class="org.activiti.spring.ProcessEngineFactoryBean"> <property name="processEngineConfiguration" ref="processEngineConfiguration"/> </bean> <!-- 7大接口 --> <bean id="repositoryService" factory-bean="processEngine" factory-method="getRepositoryService"/> <bean id="runtimeService" factory-bean="processEngine" factory-method="getRuntimeService"/> <bean id="formService" factory-bean="processEngine" factory-method="getFormService"/> <bean id="identityService" factory-bean="processEngine" factory-method="getIdentityService"/> <bean id="taskService" factory-bean="processEngine" factory-method="getTaskService"/> <bean id="historyService" factory-bean="processEngine" factory-method="getHistoryService"/> <bean id="managementService" factory-bean="processEngine" factory-method="getManagementService"/> <!-- 集成REST服务需要的bean --> <bean id="restResponseFactory" class="org.activiti.rest.service.api.RestResponseFactory" /> <bean id="contentTypeResolver" class="org.activiti.rest.common.application.DefaultContentTypeResolver" /></beans>
持久化实现:
package org.springframework.data.repository;import java.io.Serializable;@NoRepositoryBeanpublic interface CrudRepository<T, ID extends Serializable> extends Repository<T, ID> { <S extends T> S save(S var1); <S extends T> Iterable<S> save(Iterable<S> var1); T findOne(ID var1); boolean exists(ID var1); Iterable<T> findAll(); Iterable<T> findAll(Iterable<ID> var1); long count(); void delete(ID var1); void delete(T var1); void delete(Iterable<? extends T> var1); void deleteAll();}
阅读全文
0 0
- Activiti配置详解
- Activiti(一)--安装配置详解
- activiti配置
- Activiti入门教程三(详解流程引擎配置)
- activiti中监听器的配置和使用详解
- Activiti工作流详解一
- activiti工作流详解
- activiti使用详解(一)
- activiti表详解
- activiti的安装详解
- Activiti环境搭建详解
- activiti:initiator详解
- Activiti 5.3安装配置
- activiti安装配置
- Spring集成Activiti配置
- activiti的spring配置
- 配置Activiti Explorer
- 基于Spring配置activiti
- Android Studio 新建文件自动加入SVN版本控制
- 单链表的数组实现(未完)
- HDU1358-kmp
- J2EE学习篇之--Spring技术详解
- SpringMvc文件配置总结
- Activiti配置详解
- thinkphp3.2 view url传参的时候 报错(网址少了个api)
- 使用timedatectl命令设置时间
- hdu3466(01背包,贪心)
- 使用Expression动态创建lambda表达式
- 我眼里的正则表达式入门教程
- retrofit2.0 OkHttpClient--拦截器
- 使用反射操作list
- JETSON TK1 cuda6.5 编译darknet cuda版本/usr/bin/ld: cannot find -lcudart cannot find -lcublas 解决