本文整理了Java中org.activiti.bpmn.model.Process.setDocumentation()
方法的一些代码示例,展示了Process.setDocumentation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Process.setDocumentation()
方法的具体详情如下:
包路径:org.activiti.bpmn.model.Process
类名称:Process
方法名:setDocumentation
暂无
代码示例来源:origin: Activiti/Activiti
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {
String docText = xtr.getElementText();
if (StringUtils.isNotEmpty(docText)) {
if (parentElement instanceof FlowElement) {
((FlowElement) parentElement).setDocumentation(docText.trim());
} else if (parentElement instanceof Process) {
((Process) parentElement).setDocumentation(docText.trim());
}
}
}
}
代码示例来源:origin: Activiti/Activiti
bpmnModel.setTargetNamespace(namespace);
process.setDocumentation(BpmnJsonConverterUtil.getPropertyValueAsString(PROPERTY_DOCUMENTATION,
modelNode));
JsonNode processExecutableNode = JsonConverterUtil.getProperty(PROPERTY_PROCESS_EXECUTABLE,
代码示例来源:origin: org.activiti/activiti-bpmn-converter
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {
String docText = xtr.getElementText();
if (StringUtils.isNotEmpty(docText)) {
if (parentElement instanceof FlowElement) {
((FlowElement) parentElement).setDocumentation(docText.trim());
} else if (parentElement instanceof Process) {
((Process) parentElement).setDocumentation(docText.trim());
}
}
}
}
代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-converter
public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {
String docText = xtr.getElementText();
if(StringUtils.isNotEmpty(docText)) {
if (parentElement instanceof FlowElement) {
((FlowElement) parentElement).setDocumentation(docText.trim());
} else if (parentElement instanceof Process) {
((Process) parentElement).setDocumentation(docText.trim());
}
}
}
}
代码示例来源:origin: org.activiti/activiti-json-converter
bpmnModel.setTargetNamespace(namespace);
process.setDocumentation(BpmnJsonConverterUtil.getPropertyValueAsString(PROPERTY_DOCUMENTATION, modelNode));
JsonNode processExecutableNode = JsonConverterUtil.getProperty(PROPERTY_PROCESS_EXECUTABLE, modelNode);
if (processExecutableNode != null && StringUtils.isNotEmpty(processExecutableNode.asText())) {
代码示例来源:origin: org.activiti/activiti-simple-workflow
protected void initializeProcess(WorkflowDefinitionConversion conversion) {
WorkflowDefinition workflowDefinition = conversion.getWorkflowDefinition();
// Create new process
Process process = conversion.getProcess();
process.setId(generateProcessId(workflowDefinition));
process.setName(workflowDefinition.getName());
process.setDocumentation(workflowDefinition.getDescription());
if (workflowDefinition.getCategory() != null) {
conversion.getBpmnModel().setTargetNamespace(workflowDefinition.getCategory());
}
conversion.setProcess(process);
// Add start-event
StartEvent startEvent = new StartEvent();
startEvent.setId(START_EVENT_ID);
if(workflowDefinition.getStartFormDefinition() != null && workflowDefinition.getStartFormDefinition().getFormKey() != null) {
startEvent.setFormKey(workflowDefinition.getStartFormDefinition().getFormKey());
}
process.addFlowElement(startEvent);
conversion.setLastActivityId(startEvent.getId());
}
内容来源于网络,如有侵权,请联系作者删除!