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

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

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

Process.setCandidateStarterGroups介绍

暂无

代码示例

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

public Process parse(XMLStreamReader xtr, BpmnModel model) throws Exception {
  Process process = null;
  if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_ID))) {
   String processId = xtr.getAttributeValue(null, ATTRIBUTE_ID);
   process = new Process();
   process.setId(processId);
   BpmnXMLUtil.addXMLLocation(process, xtr);
   process.setName(xtr.getAttributeValue(null, ATTRIBUTE_NAME));
   if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_PROCESS_EXECUTABLE))) {
    process.setExecutable(Boolean.parseBoolean(xtr.getAttributeValue(null, ATTRIBUTE_PROCESS_EXECUTABLE)));
   }
   String candidateUsersString = xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_USERS);
   if (StringUtils.isNotEmpty(candidateUsersString)) {
    List<String> candidateUsers = BpmnXMLUtil.parseDelimitedList(candidateUsersString);
    process.setCandidateStarterUsers(candidateUsers);
   }
   String candidateGroupsString = xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_GROUPS);
   if (StringUtils.isNotEmpty(candidateGroupsString)) {
    List<String> candidateGroups = BpmnXMLUtil.parseDelimitedList(candidateGroupsString);
    process.setCandidateStarterGroups(candidateGroups);
   }

   BpmnXMLUtil.addCustomAttributes(xtr, process, ProcessExport.defaultProcessAttributes);

   model.getProcesses().add(process);

  }
  return process;
 }
}

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

public Process parse(XMLStreamReader xtr, BpmnModel model) throws Exception {
  Process process = null;
  if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_ID))) {
   String processId = xtr.getAttributeValue(null, ATTRIBUTE_ID);
   process = new Process();
   process.setId(processId);
   BpmnXMLUtil.addXMLLocation(process, xtr);
   process.setName(xtr.getAttributeValue(null, ATTRIBUTE_NAME));
   if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_PROCESS_EXECUTABLE))) {
    process.setExecutable(Boolean.parseBoolean(xtr.getAttributeValue(null, ATTRIBUTE_PROCESS_EXECUTABLE)));
   }
   String candidateUsersString = xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_USERS);
   if (StringUtils.isNotEmpty(candidateUsersString)) {
    List<String> candidateUsers = BpmnXMLUtil.parseDelimitedList(candidateUsersString);
    process.setCandidateStarterUsers(candidateUsers);
   }
   String candidateGroupsString = xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_GROUPS);
   if (StringUtils.isNotEmpty(candidateGroupsString)) {
    List<String> candidateGroups = BpmnXMLUtil.parseDelimitedList(candidateGroupsString);
    process.setCandidateStarterGroups(candidateGroups);
   }

   BpmnXMLUtil.addCustomAttributes(xtr, process, ProcessExport.defaultProcessAttributes);

   model.getProcesses().add(process);

  }
  return process;
 }
}

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

public Process parse(XMLStreamReader xtr, BpmnModel model) throws Exception {
  Process process = null;
  if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_ID))) {
   String processId = xtr.getAttributeValue(null, ATTRIBUTE_ID);
   process = new Process();
   process.setId(processId);
   BpmnXMLUtil.addXMLLocation(process, xtr);
   process.setName(xtr.getAttributeValue(null, ATTRIBUTE_NAME));
   if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_PROCESS_EXECUTABLE))) {
    process.setExecutable(Boolean.parseBoolean(xtr.getAttributeValue(null, ATTRIBUTE_PROCESS_EXECUTABLE)));
   }
   String candidateUsersString = xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_USERS);
   if (StringUtils.isNotEmpty(candidateUsersString)) {
    List<String> candidateUsers = BpmnXMLUtil.parseDelimitedList(candidateUsersString);
    process.setCandidateStarterUsers(candidateUsers);
   }
   String candidateGroupsString = xtr.getAttributeValue(ACTIVITI_EXTENSIONS_NAMESPACE, ATTRIBUTE_PROCESS_CANDIDATE_GROUPS);
   if (StringUtils.isNotEmpty(candidateGroupsString)) {
    List<String> candidateGroups = BpmnXMLUtil.parseDelimitedList(candidateGroupsString);
    process.setCandidateStarterGroups(candidateGroups);
   }
   if (process.isExecutable()) {
    model.getProcesses().add(process);
   }
  }
  return process;
 }
}

相关文章