activiti

Editing a current process definition in Activiti

三世轮回 提交于 2019-12-11 03:24:51
问题 Whenever I need to make a change in the process definition I have to re deploy the process definition.It seems that creates a new version of the process definition. Is there a way where I can update the existing process definition and not create a new version all the time. What will happen to the old process instances if there is a new version of process definition in place. Any help on the above queries is appreciated. 回答1: I don't think the Activiti API provides a way to replace an existing

How to do Activiti workflow integration with JSF application

孤街醉人 提交于 2019-12-11 02:19:06
问题 I am new to Activiti workflow. I just wanted to implement a JSF application with activiti workflow with out maven dependency. I am using JPA for databases connectivity. How to do it? 回答1: activiti-cdi might be the keyword you are looking for. It makes the integration with (among others) JSF pretty easy, see for example this tutorial: http://www.bpm-guide.de/2011/09/17/build-your-own-activiti-task-explorer-with-cdi-and-jsf-2/ 回答2: There are different tools to implement workflows in JSF. Is

how to get the previous task name in activiti workflow

让人想犯罪 __ 提交于 2019-12-11 01:54:55
问题 Actually i want to use the previous task name in current task so how to get the previous task name in current task in activiti. If any one knows could you help me? eg:TASK1==>TASK2==>TASK3 i want to use the task1 name in task2 and task2 name in task1. 回答1: You can get it from your current Process Instance: @Service public class SomeWorkflowService { @Autowired HistoryService historyService; @Autowired TaskService taskService; public Map<String, Object> currentTaskService(String currentTaskId)

第十二节:Activiti6.0——四种边界事件:定时器、错误、信号、补偿

谁说我不能喝 提交于 2019-12-10 20:36:30
一、概述 边界事件 :边界事件属于一种特殊的中间事件。区别是: 中间事件 可以单独作为流程元素存在于流程中,而 边界事件 必须附属于某个流程元素(如任务、子流程等)。边界事件是Catching事件。 二、定时器边界事件 说明 :定时器边界事件会在定时器时间到了之后进行触发,需要开启异步执行器(在activiti.cfg.xml中)。此处模拟一个损坏的物品首先交给初级工程师修理,定时1分钟后没有修好就给中级工程师修理 流程图 流程的xml < process id = " myProcess_1 " isClosed = " false " isExecutable = " true " processType = " None " > < startEvent id = " startEvent1 " name = " StartEvent " /> < userTask activiti: exclusive = " true " id = " userTask1 " name = " 初级工程师维修 " /> <!--cancelActivity属性是触发边界事件后,原流程是否取消,为true是取消,取消是在数据库中删除对应的数据--> < boundaryEvent attachedToRef = " userTask1 " cancelActivity = " true "

Integrate Activiti to JHipster Project

好久不见. 提交于 2019-12-10 17:56:02
问题 I am trying to integrate Activiti to the JHipster Project following the instruction here : getting started with activiti and spring boot. a few exception I am facing: conflict in 'userResource' class: Annotation-specified bean name 'userResource' for bean class [org.activiti.rest.service.api.identity.UserResource] conflicts with existing, non-compatible bean definition of same name and class [com.activiti.demo3.web.rest.UserResource] For now I have renamed the userResource class that comes

Activiti exclusive gateway - using in Java

筅森魡賤 提交于 2019-12-10 17:29:24
问题 I have an exclusive gateway in Activiti, how I can set the condition variable in Java code for exclusive gateway? variableData.put("condition", conditionVar); taskService.complete(task.getId(), variableData); How I can extract task variable on gateway flow? Is it possible or I have to use process variable? 回答1: When you design your workflow with conditional exclusive gateway then it will generate XML like below, <exclusiveGateway id="exclusiveGw" name="Exclusive Gateway" /> <sequenceFlow id=

Complex Activiti + JPA queries

好久不见. 提交于 2019-12-10 14:19:17
问题 We are trying to use Activiti in a new project. I've created a setup which uses Hibernate through JPA for persisting entities involved in the process and JPA is interconnected with Activiti so we can use these entities as JPA variables. See: JPA chapter of Activiti's documentation I've found out that Activiti doesn't allow me to create queries on processes which involves JPA variables where i like to filter on the JPA entity fields. For example if i have processes with a variable referencing

Specify separate datasource for Activiti in a Spring Boot app

半世苍凉 提交于 2019-12-10 10:35:34
问题 How would I use two separate dataSources in my Spring Boot application? I would like one dataSource to be used by my application, to be used for persisting my models and a separate dataSource for use by the Activiti engine, so it can keep it's entities in a separate database. As of now Activiti's tables and my app's tables are created in the same database. [Edited]: I know I can define two separate DataSource beans like: @Bean public DataSource appDataSource() { BasicDataSource dataSource =

《Activiti实战》读书笔记——5.1.4

て烟熏妆下的殇ゞ 提交于 2019-12-10 09:46:55
5.1.4节给出了一个创建用户、组,并用完成用户任务的一个例子。 1、测试类继承了抽象类AbstractTest,它中有标注@BeforeClass、@AfterClass、@Before的注解: @Before:初始化方法 对于每一个测试方法都要执行一次(注意与 BeforeClass区别,后者是对于所有方法执行一次) @After:释放资源 对于每一个测试方法都要执行一次(注意与AfterClass区别,后者是对于所有方法执行一次) @BeforeClass: 针对所有测试,只执行一次 ,且 必须为static void @AfterClass: 针对所有测试,只执行一次 ,且 必须为static void 一个JUnit4的单元测试用例执行顺序为: @BeforeClass -> @Before -> @Test -> @After -> @AfterClass; 每一个测试方法的调用顺序为: @Before -> @Test -> @After; 2、用@org.activiti.engine.test.Deployment注解导入bpmn文件: @Deployment(resources = {"chapter5/candidateUserInUserTask.bpmn"}) 起始路径是classpath,故上述导入文件应在classes/chapter5/

Activiti5.9换成MySQL数据库

北慕城南 提交于 2019-12-09 14:10:15
本人博客开始迁移,博客整个架构自己搭建及编码 http://www.cookqq.com/listBlog.action Activiti5.9默认的数据库是db,可是我们项目中运用的是mysql,那只好把db换成mysql 步骤: 1.下载activiti-5.9.zip 2.解压activiti-5.10.zip并移动(ACTIVITI_HOME=D:\myspace\activiti-5.9) 3.修改ACTIVITI_HOME\setup\build.db.properties文件,使用MySQL配置,本例如下: #MySQL Config db=mysql jdbc.driver=com.mysql.jdbc.Driver jdbc.url=jdbc:mysql://localhost:3306/activiti?autoReconnect=true jdbc.username=root jdbc.password=1234 4.复制MySQL驱动到ACTIVITI_HOME\setup\files\dependencies\libs下(mysql-connector-java-5.1.15-bin.jar) 5.修改ACTIVITI_HOME\setup\build.xml文件,添加MySQL的驱动路径 原内容: <target name="internal