Search in sources :

Example 1 with FlowNodeImpl

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());
    }
}
Also used : CategoryValue(org.eclipse.bpmn2.CategoryValue) FlowNodeImpl(org.eclipse.bpmn2.impl.FlowNodeImpl) DataObjectReference(org.eclipse.bpmn2.DataObjectReference) FlowNode(org.eclipse.bpmn2.FlowNode)

Aggregations

CategoryValue (org.eclipse.bpmn2.CategoryValue)1 DataObjectReference (org.eclipse.bpmn2.DataObjectReference)1 FlowNode (org.eclipse.bpmn2.FlowNode)1 FlowNodeImpl (org.eclipse.bpmn2.impl.FlowNodeImpl)1