LD is tigger forever,CG are not brothers forever, throw the pot and shine forever.
Modesty is not false, solid is not naive, treacherous but not deceitful, stay with good people, and stay away from poor people.
talk is cheap, show others the code and KPI, Keep progress,make a better result.
Survive during the day and develop at night。
目录
概 述
第一种方法:
new -》 activiti -》Activiti Diagram,创建一个HelloWorld文件,后缀自动为bpmn.
这里修改为IEDA插件也可。
设计流程引擎:
相关工具如下:
1.2 部署流程定义
public class HelloWorldProcess {
/**
* 获取默认流程引擎实例,会自动读取activiti.cfg.xml文件
*/
private ProcessEngine processEngine = ProcessEngines.getDefaultProcessEngine();
/**
* 部署流程定义
*/
@Test
public void test_Deploy() {
Deployment deployment=processEngine.getRepositoryService() // 获取部署相关Service
.createDeployment() //// 创建部署
.addClasspathResource("diagrams/HelloWorld.bpmn") // 加载资源文件
.addClasspathResource("diagrams/HelloWorld.png") // 加载资源文件
.name("HelloWorld流程") //流程名称
.deploy(); //部署
System.out.println("流程部署ID:"+deployment.getId());
System.out.println("流程部署Name:"+deployment.getName());
}
}
执行完成之后:act_re_deployment表会新增一条部署记录
select * from deployment:
新增资源文件表act_ge_bytearray:
更新系统配置表 act_ge_property:
分析:
小结:
Activiti表的解释,请大家指正~
参考资料和推荐阅读
1.链接: 参考资料.
本文介绍了如何使用Activiti进行第一个流程设计,包括创建HelloWorld流程定义、部署流程并分析其对Activiti表的影响。重点解读了act_re_deployment、act_ge_bytearray和act_ge_property表的操作。
1146

被折叠的 条评论
为什么被折叠?



