• 大小:
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-08-01
  • 语言: 其他
  • 标签: 示例源码  

资源简介

Activiti官方唯一推荐中文书籍——《Activiti实战》示例源码

资源截图

代码片段和文件信息

/* Licensed under the Apache License Version 2.0 (the “License“);
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing software
 * distributed under the License 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 me.kafeitu.activiti;

import org.activiti.engine.*;
import org.activiti.engine.test.ActivitiRule;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Rule;


/**
 * 抽象测试基类
 *
 * @author henryyan
 */
public abstract class AbstractTest {

    /**
     * 专门用于测试套件
     */
    @Rule
    public ActivitiRule activitiRule = new ActivitiRule(“activiti.cfg.xml“);

    protected ProcessEngine processEngine;
    protected RepositoryService repositoryService;
    protected RuntimeService runtimeService;
    protected TaskService taskService;
    protected HistoryService historyService;
    protected IdentityService identityService;
    protected ManagementService managementService;
    protected FormService formService;

    /**
     * 开始测试
     */
    @BeforeClass
    public static void setUpForClass() throws Exception {
        System.out.println(“++++++++ 开始测试 ++++++++“);
    }

    /**
     * 结束测试
     */
    @AfterClass
    public static void testOverForClass() throws Exception {
        System.out.println(“-------- 结束测试 --------“);
    }

    /**
     * 初始化变量
     */
    @Before
    public void setUp() throws Exception {
        processEngine = activitiRule.getProcessEngine();
        repositoryService = activitiRule.getRepositoryService();
        runtimeService = activitiRule.getRuntimeService();
        taskService = activitiRule.getTaskService();
        historyService = activitiRule.getHistoryService();
        identityService = activitiRule.getIdentityService();
        managementService = activitiRule.getManagementService();
        formService = activitiRule.getFormService();
    }

}

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\
     文件          41  2015-11-24 15:30  activiti-in-action-codes-master\.gitignore
     文件         371  2015-11-24 15:30  activiti-in-action-codes-master\.project
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\.settings\
     文件          55  2015-11-24 15:30  activiti-in-action-codes-master\.settings\org.eclipse.core.resources.prefs
     文件          86  2015-11-24 15:30  activiti-in-action-codes-master\.settings\org.eclipse.m2e.core.prefs
     文件          93  2015-11-24 15:30  activiti-in-action-codes-master\.settings\org.jboss.ide.eclipse.as.core.prefs
     文件       11325  2015-11-24 15:30  activiti-in-action-codes-master\LICENSE
     文件        7606  2015-11-24 15:30  activiti-in-action-codes-master\README.md
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\
     文件        1483  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.classpath
     文件        1042  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.project
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\
     文件         155  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\org.eclipse.core.resources.prefs
     文件         422  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\org.eclipse.jdt.core.prefs
     文件         123  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\org.eclipse.jpt.core.prefs
     文件          86  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\org.eclipse.m2e.core.prefs
     文件         160  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\org.eclipse.wst.common.project.facet.core.prefs.xml
     文件         163  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件         211  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\.settings\org.maven.ide.eclipse.prefs
     文件        5160  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\pom.xml
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\me\
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\me\kafeitu\
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\me\kafeitu\activiti\
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\me\kafeitu\activiti\designer\
     文件        3255  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\me\kafeitu\activiti\designer\Leave.bpmn
     文件       10951  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\me\kafeitu\activiti\designer\Leave.png
     目录           0  2015-11-24 15:30  activiti-in-action-codes-master\bpmn20-example\src\main\resources\me\kafeitu\activiti\helloworld\
............此处省略5000个文件信息

评论

共有 条评论