• flowable 三种方式部署流程


    	/**部署流程定义(根据ui.modeler的 modelId部署)
    	 * @param modelId 模型ID
    	 * @from fhadmin.cn
    	 */
    	protected String deploymentProcessDefinitionFromUIModelId(String modelId) throws Exception{
    		Model model = modelService.getModel(modelId);
    		BpmnModel bpmnModel = modelService.getBpmnModel(model);
    		Deployment deployment = repositoryService.createDeployment()
    		.name(model.getName())
    		.addBpmnModel(model.getKey() + ".bpmn", bpmnModel).deploy();
            return deployment.getId();	//部署ID
    	}
    	
    	/**部署流程定义(从Classpath)
    	 * @param name		//部署名称
    	 * @param xmlpath	//xml文件路径
    	 * @param pngpath	//png文件路径
    	 * @from fhadmin.cn
    	 */
    	protected String deploymentProcessDefinitionFromClasspath(String name, String xmlpath, String pngpath){
    		DeploymentBuilder deploymentBuilder = repositoryService.createDeployment();		//创建部署对象
    		deploymentBuilder.name(name);						//部署名称
    		deploymentBuilder.addClasspathResource(xmlpath);	//从文件中读取xml资源
    		deploymentBuilder.addClasspathResource(pngpath);	//从文件中读取png资源
    		Deployment deployment = deploymentBuilder.deploy();	//完成部署
    		return deployment.getId();							//部署ID
    	}
    	
    	/**部署流程定义(从zip压缩包)
    	 * @param name		//部署名称
    	 * @param zippath	//zip文件路径
    	 * @from fhadmin.cn
    	 * @throws FileNotFoundException 
    	 */
    	protected String deploymentProcessDefinitionFromZip(String name, String zippath) throws Exception{
    		File outfile = new File(zippath);
    		FileInputStream inputStream = new FileInputStream(outfile);
    		ZipInputStream ipInputStream = new ZipInputStream(inputStream);
    		DeploymentBuilder deploymentBuilder = repositoryService.createDeployment();		//创建部署对象
    		deploymentBuilder.name(name);						//部署名称
    		deploymentBuilder.addZipInputStream(ipInputStream);
    		Deployment deployment = deploymentBuilder.deploy();	//完成部署
    		ipInputStream.close();
    		inputStream.close();
    		return deployment.getId();							//部署ID
    	}
      ​-----------------------------------------------------------------自定义表单
    28. 定义模版:拖拽左侧表单元素到右侧区域,编辑表单元素,保存表单模版
    29. 表单模版:编辑维护表单模版,复制表单模版,修改模版类型,预览表单模版
    30. 我的表单:选择表单模版,编辑表单规则,是否上传图片、附件、开启富文本、挂靠流程开关等
    31. 表单数据:从我的表单进去可增删改查表单数据,修改表单规则
    32. 挂靠记录:记录表单数据和流程实例ID关联记录,可删除
  • 相关阅读:
    2020中国最好大学排名.py(亲测有效)
    手机号码归属地的自动查询.py(亲测有效)
    网络图片的爬取和存储.py(亲测有效)
    百度360搜索关键词提交.py(亲测有效)
    亚马逊商品页面爬取(使用headers字段).py(亲测有效)
    淘宝商品页面的爬取.py(亲测有效)
    爬取网页的通用代码框架.py(亲测有效)
    匿名函数function前面的! ~等符号作用小解
    ng之自定义指令
    用nodejs搭建一个简单的服务监听程序
  • 原文地址:https://www.cnblogs.com/m13002622490/p/16326934.html
Copyright © 2020-2023  润新知