`
zhangmingji
  • 浏览: 70985 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

jbpm3.2和myeclipse7.5/7.0开发环境的集成 (转载)

    博客分类:
  • JBPM
阅读更多

1,首先到jboss网站上下载jbpm-jpdl-suite-3.2.3.zip这个压缩包,然后将其解压即可,生成了一个jbpm- jpdl-3.2.3文件夹(我这里存放的路径为E:\jbpm\jbpm-jpdl-3.2.3)

2,启动myeclipse7.5, 首先新建一个工程,任意工程都行,然后运行下面程序

    import java.io.File;
import java.util.ArrayList;
import java.util.List;

public class CreatePluginsConfig {

    public CreatePluginsConfig() {
    }

    public void print(String path) {
        List list = getFileList(path);
        if (list == null) {
            return;
        }

        int length = list.size();
        for (int i = 0; i < length; i++) {
            String result = "";
            String thePath = getFormatPath(getString(list.get(i)));
            File file = new File(thePath);
            if (file.isDirectory()) {
                String fileName = file.getName();
                if (fileName.indexOf("_") < 0) {
                    print(thePath);
                    continue;
                }
                String[] filenames = fileName.split("_");
                String filename1 = filenames[0];
                String filename2 = filenames[1];
                result = filename1 + "," + filename2 + ",file:/" + path + "\\"
                        + fileName + "\\,4,false";
                System.out.println(result);
            } else if (file.isFile()) {
                String fileName = file.getName();
                if (fileName.indexOf("_") < 0) {
                    continue;
                }
                int last = fileName.lastIndexOf("_");// 最后一个下划线的位置
                String filename1 = fileName.substring(0, last);
                String filename2 = fileName.substring(last + 1, fileName
                        .length() - 4);
                result = filename1 + "," + filename2 + ",file:/" + path + "\\"
                        + fileName + ",4,false";
                System.out.println(result);
            }

        }
    }

    public List getFileList(String path) {
        path = getFormatPath(path);
        path = path + "/";
        File filePath = new File(path);
        if (!filePath.isDirectory()) {
            return null;
        }
        String[] filelist = filePath.list();
        List filelistFilter = new ArrayList();

        for (int i = 0; i < filelist.length; i++) {
            String tempfilename = getFormatPath(path + filelist[i]);
            filelistFilter.add(tempfilename);
        }
        return filelistFilter;
    }

    public String getString(Object object) {
        if (object == null) {
            return "";
        }
        return String.valueOf(object);
    }

    public String getFormatPath(String path) {
        path = path.replaceAll("\\\\", "/");
        path = path.replaceAll("//", "/");
        return path;
    }

    public static void main(String[] args) {
        // 插件文件所在目录designer下的目录结构是 eclipse/features and plugins的形式
        String plugin = "E:\\jbpm\\jbpm-jpdl-3.2.3\\designer";  //注意:这里一定是文件解压的路径,路径要皮配
        new CreatePluginsConfig().print(plugin);
    }
}

程序运行以后可以产生如下内容

org.jbpm.gd.jpdl.feature,3.1.3.SP2,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/features\org.jbpm.gd.jpdl.feature_3.1.3.SP2\,4,false
org.apache.xerces,2.8.0.v200705301630,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.apache.xerces_2.8.0.v200705301630.jar,4,false
org.apache.xml.resolver,1.1.0.v200705310020,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.apache.xml.resolver_1.1.0.v200705310020.jar,4,false
org.eclipse.draw2d,3.2.100.v20070529,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.draw2d_3.2.100.v20070529.jar,4,false
org.eclipse.emf.common,2.3.2.v200802051830,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.emf.common_2.3.2.v200802051830.jar,4,false
org.eclipse.emf.ecore.change,2.3.0.v200802051830,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.emf.ecore.change_2.3.0.v200802051830.jar,4,false
org.eclipse.emf.ecore.edit,2.3.1.v200802051830,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.emf.ecore.edit_2.3.1.v200802051830.jar,4,false
org.eclipse.emf.ecore.xmi,2.3.2.v200802051830,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.emf.ecore.xmi_2.3.2.v200802051830.jar,4,false
org.eclipse.emf.ecore,2.3.2.v200802051830,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.emf.ecore_2.3.2.v200802051830.jar,4,false
org.eclipse.emf.edit,2.3.2.v200802051830,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.emf.edit_2.3.2.v200802051830.jar,4,false
org.eclipse.gef,3.2.102.v20080116,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.gef_3.2.102.v20080116.jar,4,false
org.eclipse.jem.util,2.0.2.v200802192030,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.jem.util_2.0.2.v200802192030.jar,4,false
org.eclipse.wst.common.core,1.1.101.v200706120315,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.core_1.1.101.v200706120315.jar,4,false
org.eclipse.wst.common.emfworkbench.integration,1.1.105.v200802192030,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.emfworkbench.integration_1.1.105.v200802192030.jar,4,false
org.eclipse.wst.common.emf,1.1.104.v200709131115,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.emf_1.1.104.v200709131115.jar,4,false
org.eclipse.wst.common.environment,1.0.200.v200705302225,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.environment_1.0.200.v200705302225.jar,4,false
org.eclipse.wst.common.frameworks,1.1.103.v200802192030,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.frameworks_1.1.103.v200802192030.jar,4,false
org.eclipse.wst.common.project.facet.core,1.2.2.v200802200327,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.project.facet.core_1.2.2.v200802200327.jar,4,false
org.eclipse.wst.common.ui,1.1.200.v200705302225,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.ui_1.1.200.v200705302225.jar,4,false
org.eclipse.wst.common.uriresolver,1.1.203.v200802200327,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.common.uriresolver_1.1.203.v200802200327.jar,4,false
org.eclipse.wst.sse.core,1.1.203.v200802140626,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.sse.core_1.1.203.v200802140626.jar,4,false
org.eclipse.wst.sse.ui,1.0.305.v200802142230,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.sse.ui_1.0.305.v200802142230.jar,4,false
org.eclipse.wst.validation,1.1.102.v200709122200,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.validation_1.1.102.v200709122200.jar,4,false
org.eclipse.wst.xml.core,1.1.202.v200802140626,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.xml.core_1.1.202.v200802140626.jar,4,false
org.eclipse.wst.xml.ui,1.0.302.v200802140626,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.xml.ui_1.0.302.v200802140626.jar,4,false
org.eclipse.wst.xsd.core,1.1.202.v200710011705,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.wst.xsd.core_1.1.202.v200710011705.jar,4,false
org.eclipse.xsd,2.3.2.v200802051830,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.eclipse.xsd_2.3.2.v200802051830.jar,4,false
org.jbpm.gd.jpdl,3.1.3.SP2,file:/E:/jbpm/jbpm-jpdl-3.2.3/designer/eclipse/plugins\org.jbpm.gd.jpdl_3.1.3.SP2.jar,4,false

将上面的内容添加到MyEclipse 7.5\configuration\org.eclipse.equinox.simpleconfigurator文件夹下的 bundles.info后面即可(这里我的路径为C:\Program Files\Genuitec\MyEclipse 7.5\configuration\org.eclipse.equinox.simpleconfigurator)

3,ok,至此我们的myeclipse7.5和jbpm3.2的集成环境已经配置完成,重启myeclipse7.5即可,可以随便写个程序测试一下,我们可以发现在在myeclipse新建工程里面即可见到jbpm了

 

 

原文地址:http://blog.sina.com.cn/s/blog_63b233de0100m8tt.html

分享到:
评论

相关推荐

    jBPM3.2.rar_JBPM3.2_jbpm_jbpm 3.2_jbpm3_jbpm3.2教程

    "jbpm工作流开发指南"这个文档应该是关于jbPM 3.2的详细教程,涵盖了从环境配置到实际开发的全过程。你可以通过阅读这个文档,深入了解jbPM 3.2的使用方法,解决在实际项目中遇到的问题。 总的来说,jbPM 3.2是一个...

    jbpm3.2开发总结.pdf

    同时,了解Eclipse开发环境以及jbpm-gpd(jBPM Graphical Process Designer)的使用也很有帮助。 jbpm3.2支持业务流程执行语言(BPEL),它是一种用于描述业务流程的语言,允许定义各种业务流程结构,如顺序、并发...

    JBPM3.2工作流开发指南

    JBPM3.2工作流开发指南 JBPM是一个扩展性很强的工作流系统,百分百用JAVA语言开发,持久层采用Hibernate实现,理论上说,只要Hibernate支持的数据库JBPM都支持。同时它还能被部署在任何一款JAVA应用服务器上。

    jbpm3.2表说明

    jbpm3.2表说明 很详细 1.1 JBPM_PROCESSDEFINITION:流程模版表 关系表 外键存在表 外键名称 外键存在表字段 存在原因 可能 关系 JBPM_NODE JBPM_NODE FK_PROCST_SBPRCDEF SUBPROCESSDEFINITION_ 子流程的...

    jBPM 3.2 最新学习文档

    同时,jBPM Studio是一个强大的集成开发环境,集成了流程设计、调试和测试等功能,极大地提高了开发效率。 总的来说,jBPM 3.2是一个功能强大的工作流解决方案,它融合了流程建模、规则引擎、事件处理和持久化机制...

    JBPM3.2 表初始化,流程发布

    **JBPM3.2 表初始化与流程发布详解** JBPM(Java Business Process Management)是一款开源的工作流管理系统,主要...实践中,开发者应熟悉相应的SQL脚本和流程部署过程,以便高效地在JBPM环境中构建和管理业务流程。

    jbpm3.2.x开发所需jar包

    **jbpm3.2.x 开发环境搭建及关键jar包详解** 在Java企业级应用开发中,业务流程管理(Business Process Management,BPM)扮演着重要角色,而Jbpm是一个开源的BPM框架,它提供了流程定义、执行、监控和优化等一系列...

    jbpm3.2 .jar

    总的来说,jbpm3.2 .jar及其相关组件为开发者提供了强大的业务流程管理工具,帮助企业构建高度自动化和协调的业务环境。无论是流程的设计、执行还是维护,jbpm都提供了丰富的功能和支持,以适应不同行业的业务需求。

    JBPM3.2 表初始化,流程发布第一课

    1. 数据库准备:JBPM3.2需要与数据库进行交互来存储流程实例、任务和变量等信息。因此,首先需要确保已经配置好与JBPM兼容的数据库,并创建相应的数据库表。JBPM提供了SQL脚本,用于在MySQL、Oracle、PostgreSQL等...

    [原创]jBPM 3.2 学习笔记

    用erstudio v7.1查看 博文链接:https://evanz.iteye.com/blog/106101

    MyEclipse 10 JBPM 配置

    MyEclipse 10 是一款强大的Java集成开发环境,它支持多种技术栈,包括JBPM(Business Process Management,业务流程管理)的开发。JBPM 是一个开源的工作流管理系统,用于设计、执行和监控业务流程。本教程将详细...

    JBPM3.2 源码

    6. **开发与部署**:在实际应用中,开发者需要了解如何配置和集成JBPM到现有的应用程序中。这可能涉及到数据库配置、Web服务器设置、依赖管理以及自定义工作流服务的开发。通过对源码的学习,开发者可以更有效地解决...

    jbpm3.2 mysql修改可用建表语句

    jbpm3.2 mysql修改可用建表语句 在mysql命令行下使用:source D:1.sql

    jbpm3.2 简单的请假流程

    通过学习和理解这个简单的请假流程示例,开发者能够掌握jbpm的基本概念和操作,为进一步开发复杂的业务流程打下基础。同时,这也展示了jbpm如何帮助组织提高工作效率,规范业务流程,并实现流程的可视化管理。

    Myeclipse优化JBPM4.0配置

    标题:"Myeclipse优化JBPM4.0配置" 描述:"pdf格式的介绍jbpm4开发的一些配置和...通过上述步骤,开发者可以有效地配置Myeclipse以优化JBPM4.0的工作流开发环境,确保各组件之间协调工作,提升开发效率和项目质量。

    Myeclipse优化JBPM4.0配置.docx

    MyEclipse是一个流行的集成开发环境(IDE),它可以与JBPM4.0集成,以实现业务流程管理。JBPM4.0是一个基于Java的开源工作流引擎,它提供了强大的业务流程管理功能。本文将介绍如何在MyEclipse中优化JBPM4.0的配置。...

Global site tag (gtag.js) - Google Analytics