Package org.eclipse.bpmn2.modeler.core.features

Examples of org.eclipse.bpmn2.modeler.core.features.UpdateBaseElementNameFeature


    public void testPoolUnmarshalling() throws Exception {
        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("pool.json"), "").getContents().get(0));
        assertTrue(definitions.getRootElements().size() == 1);
        assertTrue(definitions.getRootElements().get(0) instanceof Process);
        Process process = getRootProcess(definitions);
        assertEquals("pool", process.getName());
        assertEquals(ProcessType.PRIVATE, process.getProcessType());
        assertTrue(process.isIsClosed());
        definitions.eResource().save(System.out, Collections.emptyMap());
    }
View Full Code Here


    public void testLaneUnmarshalling() throws Exception {
        Bpmn2JsonUnmarshaller unmarshaller = new Bpmn2JsonUnmarshaller();
        Definitions definitions = ((Definitions) unmarshaller.unmarshall(getTestJsonFile("pool.json"), "").getContents().get(0));
        assertTrue(definitions.getRootElements().size() == 1);
        assertTrue(definitions.getRootElements().get(0) instanceof Process);
        Process process = getRootProcess(definitions);
        assertTrue(process.getLaneSets().size() == 1);
        assertTrue(process.getLaneSets().get(0).getLanes().size() == 1);
        Lane l = process.getLaneSets().get(0).getLanes().get(0);
        assertEquals("my first lane", l.getName());
        definitions.eResource().save(System.out, Collections.emptyMap());
    }
View Full Code Here

    };
  }

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    return new UpdateBaseElementNameFeature(fp);
  }
View Full Code Here

    };
  }

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    return new UpdateBaseElementNameFeature(fp);
  }
View Full Code Here

public abstract class AbstractDataFeatureContainer extends BaseElementFeatureContainer {

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    return new UpdateBaseElementNameFeature(fp);
  }
View Full Code Here

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    MultiUpdateFeature multiUpdate = new MultiUpdateFeature(fp);
    multiUpdate.addUpdateFeature(new UpdateMarkersFeature(fp));
    multiUpdate.addUpdateFeature(new UpdateBaseElementNameFeature(fp));
    return multiUpdate;
  }
View Full Code Here

    };
  }

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    return new UpdateBaseElementNameFeature(fp);
  }
View Full Code Here

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    MultiUpdateFeature multiUpdate = new MultiUpdateFeature(fp);
    multiUpdate.addUpdateFeature(new UpdateDefaultSequenceFlowFeature(fp));
    multiUpdate.addUpdateFeature(new UpdateConditionalSequenceFlowFeature(fp));
    multiUpdate.addUpdateFeature(new UpdateBaseElementNameFeature(fp));
    return multiUpdate;
  }
View Full Code Here

public abstract class AbstractEventFeatureContainer extends BaseElementFeatureContainer {

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    return new UpdateBaseElementNameFeature(fp);
  }
View Full Code Here

  }

  @Override
  public IUpdateFeature getUpdateFeature(IFeatureProvider fp) {
    MultiUpdateFeature multiUpdate = new MultiUpdateFeature(fp);
    multiUpdate.addUpdateFeature(new UpdateBaseElementNameFeature(fp));
    // TODO: any other updates needed?
    return multiUpdate;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.bpmn2.modeler.core.features.UpdateBaseElementNameFeature

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.