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

x33g5p2x  于2022-01-17 转载在 其他  
字(3.9k)|赞(0)|评价(0)|浏览(133)

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

Activity.getDataOutputAssociations介绍

暂无

代码示例

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

protected void handleDataAssociations(Process process, Activity activity, List<ValidationError> errors) {
  if (activity.getDataInputAssociations() != null) {
    for (DataAssociation dataAssociation : activity.getDataInputAssociations()) {
      if (StringUtils.isEmpty(dataAssociation.getTargetRef())) {
         addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, 
             "Targetref is required on a data association");
      }
    }
  }
  if (activity.getDataOutputAssociations() != null) {
    for (DataAssociation dataAssociation : activity.getDataOutputAssociations()) {
      if (StringUtils.isEmpty(dataAssociation.getTargetRef())) {
         addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, 
             "Targetref is required on a data association");
      }
    }
  }
}

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

public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {

  if (!(parentElement instanceof Activity)) {
   return;
  }
  DataAssociation dataAssociation = new DataAssociation();
  BpmnXMLUtil.addXMLLocation(dataAssociation, xtr);
  DataAssociationParser.parseDataAssociation(dataAssociation, getElementName(), xtr);

  ((Activity) parentElement).getDataOutputAssociations().add(dataAssociation);
 }
}

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

if (CollectionUtils.isNotEmpty(activity.getDataOutputAssociations())) {
  for (DataAssociation dataAssociation : activity.getDataOutputAssociations()) {
    if (model.getFlowElement(dataAssociation.getTargetRef()) != null) {
      createDataAssociation(dataAssociation,

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

public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {
  
  if (parentElement instanceof ServiceTask == false && parentElement instanceof SendTask == false) return;
  
  DataAssociation dataAssociation = new DataAssociation();
  BpmnXMLUtil.addXMLLocation(dataAssociation, xtr);
  DataAssociationParser.parseDataAssociation(dataAssociation, getElementName(), xtr);
  
  ((Activity) parentElement).getDataOutputAssociations().add(dataAssociation);
 }
}

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

protected void handleDataAssociations(Process process, Activity activity, List<ValidationError> errors) {
  if (activity.getDataInputAssociations() != null) {
    for (DataAssociation dataAssociation : activity.getDataInputAssociations()) {
      if (StringUtils.isEmpty(dataAssociation.getTargetRef())) {
         addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, 
             "Targetref is required on a data association");
      }
    }
  }
  if (activity.getDataOutputAssociations() != null) {
    for (DataAssociation dataAssociation : activity.getDataOutputAssociations()) {
      if (StringUtils.isEmpty(dataAssociation.getTargetRef())) {
         addError(errors, Problems.DATA_ASSOCIATION_MISSING_TARGETREF, process, activity, 
             "Targetref is required on a data association");
      }
    }
  }
}

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

public void parseChildElement(XMLStreamReader xtr, BaseElement parentElement, BpmnModel model) throws Exception {

  if (parentElement instanceof Activity == false)
   return;

  DataAssociation dataAssociation = new DataAssociation();
  BpmnXMLUtil.addXMLLocation(dataAssociation, xtr);
  DataAssociationParser.parseDataAssociation(dataAssociation, getElementName(), xtr);

  ((Activity) parentElement).getDataOutputAssociations().add(dataAssociation);
 }
}

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

if (CollectionUtils.isNotEmpty(activity.getDataOutputAssociations())) {
 for (DataAssociation dataAssociation : activity.getDataOutputAssociations()) {
  if (model.getFlowElement(dataAssociation.getTargetRef()) != null) {
   createDataAssociation(dataAssociation, false, activity);

相关文章