org.activiti.bpmn.model.Process.getDocumentation()方法的使用及代码示例

x33g5p2x  于2022-01-26 转载在 其他  
字(6.6k)|赞(0)|评价(0)|浏览(188)

本文整理了Java中org.activiti.bpmn.model.Process.getDocumentation()方法的一些代码示例,展示了Process.getDocumentation()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Process.getDocumentation()方法的具体详情如下:
包路径:org.activiti.bpmn.model.Process
类名称:Process
方法名:getDocumentation

Process.getDocumentation介绍

暂无

代码示例

代码示例来源:origin: Activiti/Activiti

protected void handleProcessConstraints(BpmnModel bpmnModel, Process process, List<ValidationError> errors) {
 if (process.getId() != null && process.getId().length() > Constraints.PROCESS_DEFINITION_ID_MAX_LENGTH) {
  addError(errors, Problems.PROCESS_DEFINITION_ID_TOO_LONG, process,
    "The id of the process definition must not contain more than " + Constraints.PROCESS_DEFINITION_ID_MAX_LENGTH + " characters");
 }
 if (process.getName() != null && process.getName().length() > Constraints.PROCESS_DEFINITION_NAME_MAX_LENGTH) {
  addError(errors, Problems.PROCESS_DEFINITION_NAME_TOO_LONG, process,
    "The name of the process definition must not contain more than " + Constraints.PROCESS_DEFINITION_NAME_MAX_LENGTH + " characters");
 }
 if (process.getDocumentation() != null && process.getDocumentation().length() > Constraints.PROCESS_DEFINITION_DOCUMENTATION_MAX_LENGTH) {
  addError(errors, Problems.PROCESS_DEFINITION_DOCUMENTATION_TOO_LONG, process,
    "The documentation of the process definition must not contain more than " + Constraints.PROCESS_DEFINITION_DOCUMENTATION_MAX_LENGTH + " characters");
 }
}

代码示例来源:origin: Activiti/Activiti

if (StringUtils.isNotEmpty(process.getDocumentation())) {
 xtw.writeCharacters(process.getDocumentation());
 xtw.writeEndElement();

代码示例来源:origin: Activiti/Activiti

mainProcess.getName());
if (StringUtils.isNotEmpty(mainProcess.getDocumentation())) {
  propertiesNode.put(PROPERTY_DOCUMENTATION,
            mainProcess.getDocumentation());

代码示例来源:origin: Activiti/Activiti

protected ProcessDefinitionEntity transformProcess(BpmnParse bpmnParse, Process process) {
 ProcessDefinitionEntity currentProcessDefinition = Context.getCommandContext().getProcessDefinitionEntityManager().create();
 bpmnParse.setCurrentProcessDefinition(currentProcessDefinition);
 /*
  * Mapping object model - bpmn xml: processDefinition.id -> generated by activiti engine processDefinition.key -> bpmn id (required) processDefinition.name -> bpmn name (optional)
  */
 currentProcessDefinition.setKey(process.getId());
 currentProcessDefinition.setName(process.getName());
 currentProcessDefinition.setCategory(bpmnParse.getBpmnModel().getTargetNamespace());
 currentProcessDefinition.setDescription(process.getDocumentation());
 currentProcessDefinition.setDeploymentId(bpmnParse.getDeployment().getId());
 
 if (bpmnParse.getDeployment().getEngineVersion() != null) {
  currentProcessDefinition.setEngineVersion(bpmnParse.getDeployment().getEngineVersion());
 }
 
 createEventListeners(bpmnParse, process.getEventListeners());
 if (LOGGER.isDebugEnabled()) {
  LOGGER.debug("Parsing process {}", currentProcessDefinition.getKey());
 }
 
 bpmnParse.processFlowElements(process.getFlowElements());
 processArtifacts(bpmnParse, process.getArtifacts());
 return currentProcessDefinition;
}

代码示例来源:origin: org.activiti/activiti-process-validation

protected void handleProcessConstraints(BpmnModel bpmnModel, Process process, List<ValidationError> errors) {
 if (process.getId() != null && process.getId().length() > Constraints.PROCESS_DEFINITION_ID_MAX_LENGTH) {
  addError(errors, Problems.PROCESS_DEFINITION_ID_TOO_LONG, process,
    "The id of the process definition must not contain more than " + Constraints.PROCESS_DEFINITION_ID_MAX_LENGTH + " characters");
 }
 if (process.getName() != null && process.getName().length() > Constraints.PROCESS_DEFINITION_NAME_MAX_LENGTH) {
  addError(errors, Problems.PROCESS_DEFINITION_NAME_TOO_LONG, process,
    "The name of the process definition must not contain more than " + Constraints.PROCESS_DEFINITION_NAME_MAX_LENGTH + " characters");
 }
 if (process.getDocumentation() != null && process.getDocumentation().length() > Constraints.PROCESS_DEFINITION_DOCUMENTATION_MAX_LENGTH) {
  addError(errors, Problems.PROCESS_DEFINITION_DOCUMENTATION_TOO_LONG, process,
    "The documentation of the process definition must not contain more than " + Constraints.PROCESS_DEFINITION_DOCUMENTATION_MAX_LENGTH + " characters");
 }
}

代码示例来源:origin: com.bbossgroups.activiti/activiti-bpmn-converter

if (StringUtils.isNotEmpty(process.getDocumentation())) {
 xtw.writeCharacters(process.getDocumentation());
 xtw.writeEndElement();

代码示例来源:origin: org.activiti/activiti-bpmn-converter

if (StringUtils.isNotEmpty(process.getDocumentation())) {
 xtw.writeCharacters(process.getDocumentation());
 xtw.writeEndElement();

代码示例来源:origin: org.activiti/activiti-json-converter

propertiesNode.put(PROPERTY_NAME, mainProcess.getName());
if (StringUtils.isNotEmpty(mainProcess.getDocumentation())) {
 propertiesNode.put(PROPERTY_DOCUMENTATION, mainProcess.getDocumentation());

代码示例来源:origin: com.bbossgroups.activiti/activiti-engine

currentProcessDefinition.setName(process.getName());
currentProcessDefinition.setCategory(bpmnParse.getBpmnModel().getTargetNamespace());
currentProcessDefinition.setDescription(process.getDocumentation()); 
currentProcessDefinition.setProperty(PROPERTYNAME_DOCUMENTATION, process.getDocumentation()); // Kept for backwards compatibility. See ACT-1020
currentProcessDefinition.setTaskDefinitions(new HashMap<String, TaskDefinition>());
currentProcessDefinition.setDeploymentId(bpmnParse.getDeployment().getId());

代码示例来源:origin: org.activiti/activiti-engine

protected ProcessDefinitionEntity transformProcess(BpmnParse bpmnParse, Process process) {
 ProcessDefinitionEntity currentProcessDefinition = Context.getCommandContext().getProcessDefinitionEntityManager().create();
 bpmnParse.setCurrentProcessDefinition(currentProcessDefinition);
 /*
  * Mapping object model - bpmn xml: processDefinition.id -> generated by activiti engine processDefinition.key -> bpmn id (required) processDefinition.name -> bpmn name (optional)
  */
 currentProcessDefinition.setKey(process.getId());
 currentProcessDefinition.setName(process.getName());
 currentProcessDefinition.setCategory(bpmnParse.getBpmnModel().getTargetNamespace());
 currentProcessDefinition.setDescription(process.getDocumentation());
 currentProcessDefinition.setDeploymentId(bpmnParse.getDeployment().getId());
 
 if (bpmnParse.getDeployment().getEngineVersion() != null) {
  currentProcessDefinition.setEngineVersion(bpmnParse.getDeployment().getEngineVersion());
 }
 
 createEventListeners(bpmnParse, process.getEventListeners());
 if (LOGGER.isDebugEnabled()) {
  LOGGER.debug("Parsing process {}", currentProcessDefinition.getKey());
 }
 
 bpmnParse.processFlowElements(process.getFlowElements());
 processArtifacts(bpmnParse, process.getArtifacts());
 return currentProcessDefinition;
}

相关文章