Package org.drools.compiler.integrationtests

Examples of org.drools.compiler.integrationtests.MiscTest2$Conversation


            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.CONVERSATION: {
            Conversation conversation = (Conversation) theEObject;
            T result = caseConversation(conversation);
            if (result == null)
                result = caseConversationNode(conversation);
            if (result == null)
                result = caseBaseElement(conversation);
View Full Code Here


    return context.getTargetContainer().equals(getDiagram());
  }

  @Override
  public Object[] create(ICreateContext context) {
    Conversation c = null;
    try {
      ModelHandler handler = ModelHandler.getInstance(getDiagram());
      c = ModelHandler.FACTORY.createConversation();
//      c.setId(EcoreUtil.generateUUID());
      c.setName("Conversation");
      handler.addConversationNode(c);
      ModelUtil.setID(c);
    } catch (IOException e) {
      Activator.logError(e);
    }
View Full Code Here

  @Override
  public PictogramElement add(IAddContext context) {
    IGaService gaService = Graphiti.getGaService();
    IPeService peService = Graphiti.getPeService();
    Conversation c = (Conversation) context.getNewObject();

    int w = context.getWidth() > 0 ? context.getWidth() : 30;
    int h = context.getHeight() > 0 ? context.getHeight() : 30;

    ContainerShape containerShape = peService.createContainerShape(context.getTargetContainer(), true);
View Full Code Here

TOP

Related Classes of org.drools.compiler.integrationtests.MiscTest2$Conversation

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.