Search in sources :

Example 6 with DiagramSet

use of org.kie.workbench.common.stunner.bpmn.definition.property.diagram.DiagramSet in project kie-wb-common by kiegroup.

the class BPMNDiagramTest method createValidBpmnDiagram.

public BPMNDiagramImpl createValidBpmnDiagram() {
    BPMNDiagramImpl BPMNDiagramImpl = new BPMNDiagramImpl.BPMNDiagramBuilder().build();
    DiagramSet diagramSet = BPMNDiagramImpl.getDiagramSet();
    diagramSet.setName(new Name(NAME_VALID));
    diagramSet.setId(new Id(ID_VALID));
    diagramSet.setPackageProperty(new Package(PACKAGE_VALID));
    diagramSet.setVersion(new Version(VERSION_VALID));
    return BPMNDiagramImpl;
}
Also used : Version(org.kie.workbench.common.stunner.bpmn.definition.property.diagram.Version) DiagramSet(org.kie.workbench.common.stunner.bpmn.definition.property.diagram.DiagramSet) BPMNDiagramImpl(org.kie.workbench.common.stunner.bpmn.definition.BPMNDiagramImpl) Id(org.kie.workbench.common.stunner.bpmn.definition.property.diagram.Id) Package(org.kie.workbench.common.stunner.bpmn.definition.property.diagram.Package) Name(org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)

Aggregations

DiagramSet (org.kie.workbench.common.stunner.bpmn.definition.property.diagram.DiagramSet)6 BPMNDiagramImpl (org.kie.workbench.common.stunner.bpmn.definition.BPMNDiagramImpl)5 BPMNDiagram (org.kie.workbench.common.stunner.bpmn.definition.BPMNDiagram)3 View (org.kie.workbench.common.stunner.core.graph.content.view.View)3 FlowElement (org.eclipse.bpmn2.FlowElement)2 ItemAwareElement (org.eclipse.bpmn2.ItemAwareElement)2 RootElement (org.eclipse.bpmn2.RootElement)2 Test (org.junit.Test)2 Id (org.kie.workbench.common.stunner.bpmn.definition.property.diagram.Id)2 Package (org.kie.workbench.common.stunner.bpmn.definition.property.diagram.Package)2 Version (org.kie.workbench.common.stunner.bpmn.definition.property.diagram.Version)2 Name (org.kie.workbench.common.stunner.bpmn.definition.property.general.Name)2 ProcessData (org.kie.workbench.common.stunner.bpmn.definition.property.variables.ProcessData)2 Metadata (org.kie.workbench.common.stunner.core.diagram.Metadata)2 Element (org.kie.workbench.common.stunner.core.graph.Element)2 Graph (org.kie.workbench.common.stunner.core.graph.Graph)2 Process (org.eclipse.bpmn2.Process)1 Package (org.guvnor.common.services.project.model.Package)1 ProcessPropertyWriter (org.kie.workbench.common.stunner.bpmn.backend.converters.fromstunner.properties.ProcessPropertyWriter)1 ProcessPropertyReader (org.kie.workbench.common.stunner.bpmn.backend.converters.tostunner.properties.ProcessPropertyReader)1