JeeSite主要定位于企业信息化领域。网址:http://www.oschina.net/p/jeesite

从描述来看,各种NB,下来看的最主要原因是最近还在更新,觉得有问题可以有一批人一起研究研究。

下来后发现文档还挺多,简单看了一遍,没什么概念,先编译通过然后跑起来才是王道,然后,就是各种坑。

我的环境(win7 64bit, myeclipse10.7.1, jdk1.7,maven-3.3.9)

先来看其中有一个maven压缩包,估计是有一些设置需要在maven中设置,这句话很关键

<;activeProfiles>

  <;activeProfile>thinkgem</activeProfile>

</activeProfiles>

将之加入当前maven中

 

然后修改pom.xml中的jdk版本:

<jdk.version>1.7</jdk.version>

然后发现某些jar包不存在,手动添加如下内容到pom.xml中

 

<restlet-version>2.3.6</restlet-version>

 

 

<repository> 

    <id>maven-restlet</id> 

    <name>Restlet repository</name> 

    <url>https://maven.restlet.com</url> 

</repository>

 

<dependency>

    <groupId>org.apache.commons</groupId>

    <artifactId>commons-email</artifactId>

    <version>1.3.2</version>

</dependency>

<dependency>

    <groupId>org.codehaus.jackson</groupId>

    <artifactId>jackson-mapper-asl</artifactId>

    <version>1.5.0</version>

</dependency>

 

<dependency> 

    <groupId>org.restlet.jse</groupId> 

    <artifactId>org.restlet</artifactId> 

    <version>${restlet-version}</version> 

</dependency> 

<dependency> 

    <groupId>org.restlet.jse</groupId> 

    <artifactId>org.restlet.ext.jackson</artifactId> 

    <version>${restlet-version}</version> 

</dependency> 

 

<dependency>

    <groupId>org.activiti</groupId>

    <artifactId>activiti-json-converter</artifactId>

    <version>${activiti.version}</version>

</dependency>

<dependency>

    <groupId>org.activiti</groupId>

    <artifactId>activiti-bpmn-layout</artifactId>

    <version>${activiti.version}</version>

</dependency>

<dependency>

    <groupId>org.activiti</groupId>

    <artifactId>activiti-bpmn-converter</artifactId>

    <version>${activiti.version}</version>

</dependency>

 

<dependency>

    <groupId>org.activiti</groupId>

    <artifactId>activiti-common-rest</artifactId>

    <version>${activiti.version}</version>

</dependency>

<dependency>

    <groupId>org.activiti</groupId>

    <artifactId>activiti-rest</artifactId>

    <version>${activiti.version}</version>

</dependency>

<dependency>

    <groupId>org.activiti</groupId>

    <artifactId>activiti-bpmn-model</artifactId>

    <version>${activiti.version}</version>

</dependency>

 
然后屏蔽如下代码:
/**

 * 根据Model部署流程

 */

@Transactional(readOnly = false)

public String deploy(String id) {

    String message = "";

      try {

        org.activiti.engine.repository.Model modelData = repositoryService.getModel(id);

        BpmnJsonConverter jsonConverter = new BpmnJsonConverter();

        JsonNode editorNode = new ObjectMapper().readTree(repositoryService.getModelEditorSource(modelData.getId()));

        BpmnModel bpmnModel = jsonConverter.convertToBpmnModel(editorNode);

        BpmnXMLConverter xmlConverter = new BpmnXMLConverter();

        byte[] bpmnBytes = xmlConverter.convertToXML(bpmnModel);

        

        String processName = modelData.getName();

        if (!StringUtils.endsWith(processName, ".bpmn20.xml")){

            processName += ".bpmn20.xml";

        }

          System.out.println("========="+processName+"============"+modelData.getName());

        ByteArrayInputStream in = new ByteArrayInputStream(bpmnBytes);

        Deployment deployment = repositoryService.createDeployment().name(modelData.getName())

                .addInputStream(processName, in).deploy();

                  .addString(processName, new String(bpmnBytes)).deploy();

        

        // 设置流程分类

        List<ProcessDefinition> list = repositoryService.createProcessDefinitionQuery().deploymentId(deployment.getId()).list();

        for (ProcessDefinition processDefinition : list) {

            repositoryService.setProcessDefinitionCategory(processDefinition.getId(), modelData.getCategory());

            message = "部署成功,流程ID=" + processDefinition.getId();

        }

        if (list.size() == 0){

            message = "部署失败,没有流程。";

        }

    } catch (Exception e) {

        throw new ActivitiException("设计模型图不正确,检查模型正确性,模型ID="+id, e);

    }*/

    return message;

}

 

/**

 * 导出model的xml文件

 * @throws IOException 

 * @throws JsonProcessingException 

 */

public void export(String id, HttpServletResponse response) {

    try {

/*        org.activiti.engine.repository.Model modelData = repositoryService.getModel(id);

        BpmnJsonConverter jsonConverter = new BpmnJsonConverter();

        JsonNode editorNode = new ObjectMapper().readTree(repositoryService.getModelEditorSource(modelData.getId()));

        BpmnModel bpmnModel = jsonConverter.convertToBpmnModel(editorNode);

        BpmnXMLConverter xmlConverter = new BpmnXMLConverter();

        byte[] bpmnBytes = xmlConverter.convertToXML(bpmnModel);


        ByteArrayInputStream in = new ByteArrayInputStream(bpmnBytes);

        IOUtils.copy(in, response.getOutputStream());

        String filename = bpmnModel.getMainProcess().getId() + ".bpmn20.xml";

        response.setHeader("Content-Disposition", "attachment; filename=" + filename);

        response.flushBuffer();*/

    } catch (Exception e) {

        throw new ActivitiException("导出model的xml文件失败,模型ID="+id, e);

    }

    

}

 

终于编译通过,晚上开始试运行,看看是啥东西

JeeSite试用的更多相关文章

  1. SharePoint Online 申请试用链接地址

    SharePoint Online 申请试用链接地址: https://products.office.com/en-us/business/compare-office-365-for-busine ...

  2. 活动助手Beta用户试用报告

    用户试用报告 1.面向参与者用户 1.1 日常参加各类学习(水综测)活动中,有没有遇到以下问题: (1) 信息来源混乱,不知道靠不靠谱 (2) 每次报名都要重新填写自己的学号手机号,有时候填错了就没综 ...

  3. 创建WP8试用应用

    参考资料: 创建 Windows Phone 的试用应用 如何在 Windows Phone 应用中实现试用体验 Windows Phone 7 开发 31 日谈——第23日:提供试用版应用程序 对资 ...

  4. JeeSite学习笔记~代码生成原理

    1.建立数据模型[单表,一对多表,树状结构表] 用ERMaster建立数据模型,并设定对应表,建立关联关系 2.系统获取对应表原理 1.怎样获取数据库的表 genTableForm.jsp: < ...

  5. 达梦7的试用 与SQLSERVER的简单技术对比

    达梦7的试用 与SQLSERVER的简单技术对比 达梦数据库公司推出了他们的数据库服务管理平台,可以在该平台使用达梦数据库而无须安装达梦7数据库 地址:http://online.dameng.com ...

  6. Beta版本——用户试用与调研报告

    1 引言 1.1 系统概述 ​ 毕设导师智能分配系统是一个用来简化传统手工匹配繁琐操作的系统.本系统将学生报志愿.系负责人收集整理数据.相关人员进行手工分配.反馈选择结果等繁琐的操作转移到线上.把毕设 ...

  7. 【记录】尝试用android-logging-log4j去实现log输出内容到sd卡中的文件的功能

    [背景] 折腾: [记录]给Android中添加log日志输出到文件 期间,已经试了: [记录]尝试用android中microlog4android实现log输出到文件的功能 但是不好用. 然后就是 ...

  8. 代码阅读分析工具Understand 2.0试用

    Understand 2.0是一款源代码阅读分析软件,功能强大.试用过一段时间后,感觉相当不错,确实可以大大提高代码阅读效率.由于Understand功能十分强大,本文不可能详尽地介绍它的所有功能,所 ...

  9. 如何申请国际版Office365和Azure的试用账号

    关键字:国际版.Office365.Azure.试用账号.1美元.信用卡 待续

随机推荐

  1. Delphi webservice 定义 转

    webservice   Web Services是由企业发布的完成其特定商务需求的在线应用服务,其他公司或应用软件能够通过Internet来访问并使用这项在线服务. 简介 它是一种构建应用程序的普遍 ...

  2. Linux学习笔记8——VIM编辑器的使用

    在ubuntu中,敲入命令行:sudo apt-get install vim,然后输入系统密码,确认Y,即可下载vim 按下vim,在后面跟上文件的路径,即可进入文件到编辑模式,如果不存在该文件,将 ...

  3. NVIDIA CG语言 函数之所有数学类函数(Mathematical Functions)

    数学类函数(Mathematical Functions) abs(x) 返回标量和向量x的绝对值 如果x是向量,则返回每一个成员的绝对值 acos(x) 返回标量和向量x的反余弦 x的范围是[-1, ...

  4. HDOJ 1312题Red and Black

    Red and Black Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total ...

  5. 自己动手画一个HTML5的按钮

    <!DOCTYPE HTML> <html lang="en-US"> <head> <meta charset="UTF-8& ...

  6. PHP+IIS7+PHPMangerForIIS搭建开发环境

    准备工作 1.安装IIS 2.安装php 3.安装phpmanager 准备工作做好后,开始搭建环境 1.在Internet信息服务管理器下找到PHPManager 2.点击Register new ...

  7. JAVA Calendar具体解释

    (在文章的最后,将会介绍Date类,假设有兴趣,能够直接翻到最后去阅读) 到底什么是一个 Calendar 呢?中文的翻译就是日历,那我们立马能够想到我们生活中有阳(公)历.阴(农)历之分.它们的差别 ...

  8. BZOJ 1806 IOI2007 Miners 矿工配餐 动态规划

    题目大意:将一个123序列拆分为两个子序列.定义每一个数的贡献值为以这个数结尾的长度最大为3的子串中不同数的数量,求贡献值和的最大值 令f[i][a1][a2][b1][b2]为前i个数分成两组,第一 ...

  9. [RxJS] Filtering operators: takeUntil, takeWhile

    take(), takeLast(), first(), last(), those opreators all take number or no param. takeUtil and takeW ...

  10. Shell编程速查手册

    https://blog.atime.me/note/shell-scripting-summary.html 总结一下日常Shell脚本里常用的知识,忘记时方便查阅. 常见的shell 常见的Lin ...