• 大小: 6.03MB
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2023-10-14
  • 语言: 其他
  • 标签: activiti-5.2  

资源简介

activiti-explorer2_5.22-官方汉化版_源码包 直接导入IDE 部署运行 访问http://localhost:8080/activiti-webapp-explorer2 端口号看自己的tomcat配置,登录名密码用kermit

资源截图

代码片段和文件信息

package org.activiti.explorer.conf;

import java.sql.Driver;
import java.util.ArrayList;
import java.util.List;

import javax.sql.DataSource;

import org.activiti.engine.FormService;
import org.activiti.engine.HistoryService;
import org.activiti.engine.IdentityService;
import org.activiti.engine.ManagementService;
import org.activiti.engine.ProcessEngine;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.RuntimeService;
import org.activiti.engine.TaskService;
import org.activiti.engine.form.AbstractFormType;
import org.activiti.engine.impl.cfg.ProcessEngineConfigurationImpl;
import org.activiti.explorer.form.MonthFormType;
import org.activiti.explorer.form.ProcessDefinitionFormType;
import org.activiti.explorer.form.UserFormType;
import org.activiti.spring.ProcessEngineFactoryBean;
import org.activiti.spring.SpringProcessEngineConfiguration;
import org.apache.commons.lang3.StringUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.core.env.Environment;
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
import org.springframework.jdbc.datasource.SimpleDriverDataSource;
import org.springframework.transaction.PlatformTransactionManager;

@Configuration
public class ActivitiEngineConfiguration {

  private final Logger log = LoggerFactory.getLogger(ActivitiEngineConfiguration.class);
  
  @Autowired
  protected Environment environment;
  
  @Bean
  public DataSource dataSource() { 
    SimpleDriverDataSource ds = new SimpleDriverDataSource();
    
    try {
      @SuppressWarnings(“unchecked“)
      Class driverClass = (Class) Class.forName(environment.getProperty(“jdbc.driver“ “org.h2.Driver“));
      ds.setDriverClass(driverClass);
      
    } catch (Exception e) {
      log.error(“Error loading driver class“ e);
    }
    
    // Connection settings
    ds.setUrl(environment.getProperty(“jdbc.url“ “jdbc:h2:mem:activiti;DB_CLOSE_DELAY=1000“));
    ds.setUsername(environment.getProperty(“jdbc.username“ “sa“));
    ds.setPassword(environment.getProperty(“jdbc.password“ ““));
    
    return ds;
  }

  @Bean(name = “transactionManager“)
  public PlatformTransactionManager annotationDrivenTransactionManager() {
    DataSourceTransactionManager transactionManager = new DataSourceTransactionManager();
    transactionManager.setDataSource(dataSource());
    return transactionManager;
  }
  
  @Bean(name=“processEngineFactoryBean“)
  public ProcessEngineFactoryBean processEngineFactoryBean() {
    ProcessEngineFactoryBean factoryBean = new ProcessEngineFactoryBean();
    factoryBean.setProcessEngineConfiguration(processEngineConfiguration());
    return factoryBean;
  }
  
  @Bean(name=“processEngine“)
  public ProcessEngine processEngine() {
    // Safe to cal

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\
     文件        1308  2018-08-22 17:12  activiti-webapp-explorer2\.classpath
     文件        1519  2018-08-22 17:05  activiti-webapp-explorer2\.project
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\.settings\
     文件         522  2018-08-22 16:07  activiti-webapp-explorer2\.settings\.jsdtscope
     文件        1009  2018-08-22 17:07  activiti-webapp-explorer2\.settings\com.genuitec.eclipse.j2eedt.core.prefs
     文件          78  2018-08-22 16:26  activiti-webapp-explorer2\.settings\com.genuitec.eclipse.migration.prefs
     文件         124  2018-08-22 16:43  activiti-webapp-explorer2\.settings\org.eclipse.core.resources.prefs
     文件         430  2018-08-22 16:43  activiti-webapp-explorer2\.settings\org.eclipse.jdt.core.prefs
     文件         686  2018-08-22 17:12  activiti-webapp-explorer2\.settings\org.eclipse.wst.common.component
     文件         296  2018-08-22 16:43  activiti-webapp-explorer2\.settings\org.eclipse.wst.common.project.facet.core.xml
     文件          49  2018-08-22 16:07  activiti-webapp-explorer2\.settings\org.eclipse.wst.jsdt.ui.superType.container
     文件           6  2018-08-22 16:07  activiti-webapp-explorer2\.settings\org.eclipse.wst.jsdt.ui.superType.name
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\bin\
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\bin\org\
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\bin\org\activiti\
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\bin\org\activiti\explorer\
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\bin\org\activiti\explorer\conf\
     文件       11944  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\conf\ActivitiEngineConfiguration.class
     文件        1657  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\conf\ApplicationConfiguration.class
     文件       10283  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\conf\DemoDataConfiguration.class
     文件        1212  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\conf\JacksonConfiguration.class
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\bin\org\activiti\explorer\servlet\
     文件        5850  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\servlet\DispatcherServletConfiguration.class
     文件        1830  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\servlet\FilterServletOutputStream.class
     文件        2291  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\servlet\GenericResponseWrapper.class
     文件        2757  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\servlet\JsonpCallbackFilter.class
     文件        4960  2018-08-22 16:36  activiti-webapp-explorer2\bin\org\activiti\explorer\servlet\WebConfigurer.class
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\editor\
     文件        3555  2016-11-03 11:25  activiti-webapp-explorer2\editor\build.xml
     目录           0  2018-08-22 17:46  activiti-webapp-explorer2\editor\icons\
............此处省略690个文件信息

评论

共有 条评论