Package org.activiti.designer.features

Source Code of org.activiti.designer.features.CreateInclusiveGatewayFeature

package org.activiti.designer.features;

import org.activiti.bpmn.model.InclusiveGateway;
import org.activiti.designer.PluginImage;
import org.eclipse.graphiti.features.IFeatureProvider;
import org.eclipse.graphiti.features.context.ICreateContext;

public class CreateInclusiveGatewayFeature extends AbstractCreateFastBPMNFeature {

  public static final String FEATURE_ID_KEY = "inclusivegateway";

  public CreateInclusiveGatewayFeature(IFeatureProvider fp) {
    // set name and description of the creation feature
    super(fp, "InclusiveGateway", "Add inclusive gateway");
  }

  public Object[] create(ICreateContext context) {
    InclusiveGateway inclusiveGateway = new InclusiveGateway();
    addObjectToContainer(context, inclusiveGateway, "Inclusive Gateway");

    return new Object[] { inclusiveGateway };
  }

  @Override
  public String getCreateImageId() {
    return PluginImage.IMG_GATEWAY_INCLUSIVE.getImageKey();
  }

  @Override
  protected String getFeatureIdKey() {
    return FEATURE_ID_KEY;
  }
}
TOP

Related Classes of org.activiti.designer.features.CreateInclusiveGatewayFeature

TOP
Copyright © 2018 www.massapi.com. 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.