ggdxx

activiti7 获取流程定义的xml

2020-07-29 21:50  梦回吹角连营  阅读(0)  评论(0编辑  收藏
RepositoryService repositoryService = ProcessEngines.getDefaultProcessEngine().getRepositoryService();

//获取BpmnModel对象
BpmnModel bpmnModel = repositoryService.getBpmnModel(processInstanceId);
//创建转换对象

BpmnXMLConverter converter = new BpmnXMLConverter();
//把bpmnModel对象转换成字符
byte[] bytes = converter.convertToXML(bpmnModel);
String xmlContenxt = new String(bytes);

xmlContenxt即为流程的xml

分类:

技术点:

相关文章:

  • 2022-01-19
  • 2021-09-10
  • 2021-09-17
  • 2021-12-27
  • 2022-01-14
  • 2022-01-07
  • 2021-04-05
  • 2021-10-09
猜你喜欢
  • 2020-04-02
  • 2021-07-08
  • 2021-08-05
  • 2021-09-20
  • 2021-12-28
  • 2022-01-03
  • 2021-06-06
相关资源
相似解决方案