jbpm-jpdl-3.2.3与MyEclipse8.5集成

本文介绍如何在MyEclipse8.5中配置JBPM流程设计器,包括下载并解压JBPM套件、运行代码获取插件配置信息及配置MyEclipse。

1、在官网上下载jbpm-jpdl-suite-3.2.3.zip包,这个包里包括jbpm的相关文件,以及图形化编辑器

2、加压缩jbpm-jpdl-suite-3.2.3.zip在你的硬盘上。

3、启动myeclipse8.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);
    }
}

4、运行上面代码后,控制台会有如下结果:

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

5、将结果拷贝到MyEclipse 8.5/configuration/org.eclipse.equinox.simpleconfigurator文件夹下的 bundles.info后面即可

6、好了!重新启动MyEclipse8.5,你在创建project的时候就可以看见,可以建Jbpm工程了。

7、当创建Definition时会跳出一个文本框,name随便填,Location填jbpm-jpdl-suite-3.2.3.zip包解压后的地址。下一步。。。。下一步。。。。搞定!

植物实例分割数据集 一、基础信息 数据集名称:植物实例分割数据集 图片数量: - 训练集:9,600张图片 - 验证集:913张图片 - 测试集:455张图片 总计:10,968张图片 分类类别:59个类别,对应数字标签0至58,涵盖多种植物状态或特征。 标注格式:YOLO格式,适用于实例分割任务,包含多边形标注点。 数据格式:图像文件,来源于植物图像数据库,适用于计算机视觉任务。 二、适用场景 • 农业植物监测AI系统开发:数据集支持实例分割任务,帮助构建能够自动识别植物特定区域并分类的AI模型,辅助农业专家进行精准监测和分析。 • 智能农业应用研发:集成至农业管理平台,提供实时植物状态识别功能,为作物健康管理和优化种植提供数据支持。 • 学术研究农业创新:支持植物科学人工智能交叉领域的研究,助力发表高水平农业AI论文。 • 农业教育培训:数据集可用于农业院校或培训机构,作为学生学习植物图像分析和实例分割技术的重要资源。 三、数据集优势 • 精准标注多样性:标注采用YOLO格式,确保分割区域定位精确;包含59个类别,覆盖多种植物状态,具有高度多样性。 • 数据量丰富:拥有超过10,000张图像,大规模数据支持模型充分学习和泛化。 • 任务适配性强:标注兼容主流深度学习框架(如YOLO、Mask R-CNN等),可直接用于实例分割任务,并可能扩展到目标检测或分类等任务。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值