use of org.eclipse.bpmn2.impl.FlowNodeImpl in project kie-wb-common by kiegroup.
the class LanePropertyWriter method addChild.
@Override
public void addChild(BasePropertyWriter child) {
if (child instanceof DataObjectPropertyWriter) {
final DataObjectReference element = (DataObjectReference) child.getElement();
FlowNode node = new FlowNodeImpl() {
@Override
public Auditing getAuditing() {
return element.getAuditing();
}
@Override
public Monitoring getMonitoring() {
return element.getMonitoring();
}
@Override
public List<CategoryValue> getCategoryValueRef() {
return element.getCategoryValueRef();
}
@Override
public String getName() {
return element.getName();
}
@Override
public String toString() {
return element.toString();
}
};
lane.getFlowNodeRefs().add(node);
} else {
lane.getFlowNodeRefs().add((FlowNode) child.getElement());
}
}
Aggregations