当我使用Activiti6.0
时,我发现:
BPMN file is deployed
时,会将两个数据文件插入ACT_GE_BYTEARRAY表,一个为XML文件,另一个为自动生成的图像文件。dynamically deployed BpmnModel classes
时,ACT_GE_BYTEARRAY表仅插入一个XML文件,而不是相应的图像文件。任何人都知道为什么
这是动态部署过程的源代码:
BpmnModel model = new BpmnModel();
Process process = new Process();
model.addProcess(process);
process.setId("news");
///~ init process...
Deployment deployment = activitiRule.getRepositoryService()
.createDeployment()
.addBpmnModel(process.getId() + ".bpmn", model)
.name(process.getName() + "_deployment")
.deploy();