本文整理了Java中org.flowable.bpmn.model.Association.setSourceRef()
方法的一些代码示例,展示了Association.setSourceRef()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Association.setSourceRef()
方法的具体详情如下:
包路径:org.flowable.bpmn.model.Association
类名称:Association
方法名:setSourceRef
暂无
代码示例来源:origin: org.flowable/flowable-json-converter
@Override
protected BaseElement convertJsonToElement(JsonNode elementNode, JsonNode modelNode, Map<String, JsonNode> shapeMap) {
Association association = new Association();
String sourceRef = BpmnJsonConverterUtil.lookForSourceRef(elementNode.get(EDITOR_SHAPE_ID).asText(), modelNode.get(EDITOR_CHILD_SHAPES));
if (sourceRef != null) {
association.setSourceRef(sourceRef);
String targetId = elementNode.get("target").get(EDITOR_SHAPE_ID).asText();
association.setTargetRef(BpmnJsonConverterUtil.getElementId(shapeMap.get(targetId)));
}
return association;
}
}
代码示例来源:origin: org.flowable/flowable-bpmn-converter
@Override
protected BaseElement convertXMLToElement(XMLStreamReader xtr, BpmnModel model) throws Exception {
Association association = new Association();
BpmnXMLUtil.addXMLLocation(association, xtr);
association.setSourceRef(xtr.getAttributeValue(null, ATTRIBUTE_FLOW_SOURCE_REF));
association.setTargetRef(xtr.getAttributeValue(null, ATTRIBUTE_FLOW_TARGET_REF));
association.setId(xtr.getAttributeValue(null, ATTRIBUTE_ID));
String associationDirectionString = xtr.getAttributeValue(null, ATTRIBUTE_ASSOCIATION_DIRECTION);
if (StringUtils.isNotEmpty(associationDirectionString)) {
AssociationDirection associationDirection = AssociationDirection.valueOf(associationDirectionString.toUpperCase());
association.setAssociationDirection(associationDirection);
}
parseChildElements(getXMLElementName(), association, model, xtr);
return association;
}
代码示例来源:origin: org.ow2.petals.flowable/flowable-bpmn-model
public void setValues(Association otherElement) {
super.setValues(otherElement);
setSourceRef(otherElement.getSourceRef());
setTargetRef(otherElement.getTargetRef());
if (otherElement.getAssociationDirection() != null) {
setAssociationDirection(otherElement.getAssociationDirection());
}
}
}
代码示例来源:origin: org.flowable/flowable-bpmn-model
public void setValues(Association otherElement) {
super.setValues(otherElement);
setSourceRef(otherElement.getSourceRef());
setTargetRef(otherElement.getTargetRef());
if (otherElement.getAssociationDirection() != null) {
setAssociationDirection(otherElement.getAssociationDirection());
}
}
}
内容来源于网络,如有侵权,请联系作者删除!