Examples of PlanItem


Examples of com.mockey.model.PlanItem

    if (serviceIdArray != null) {
      for (String serviceId : serviceIdArray) {

        Service service = store.getServiceById(new Long(serviceId));

        PlanItem planItem = new PlanItem();
        planItem.setHangTime(service.getHangTime());
        planItem.setServiceName(service.getServiceName());

        planItem.setScenarioName(service.getDefaultScenarioName());
        planItem.setServiceResponseType(service.getServiceResponseType());
        planItemList.add(planItem);

      }
    }
    servicePlan.setPlanItemList(planItemList);
View Full Code Here

Examples of com.mockey.model.PlanItem

    ServicePlan servicePlan = new ServicePlan();
    servicePlan.setId(new Long(1));
    servicePlan.setName(SERVICENAME_A);
    servicePlan
        .setDescription("Lorem ipsum dolor sit amet, consectetur adipiscing elit. ");
    PlanItem planItem = new PlanItem();
    planItem.setServiceResponseType(Service.SERVICE_RESPONSE_TYPE_PROXY);
    planItem.setScenarioName(SCENARIO_A);
    planItem.setServiceName(SERVICENAME_A);
    servicePlan.addPlanItem(planItem);

    planItem = new PlanItem();
    planItem.setServiceResponseType(Service.SERVICE_RESPONSE_TYPE_PROXY);
    planItem.setScenarioName(SCENARIO_B);
    planItem.setServiceName(SERVICENAME_A);
    servicePlan.addPlanItem(planItem);
    planList.add(servicePlan);

    return planList;
  }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

    return element.getExtensionElements();
  }

  protected PlanItemControl getItemControl(CmmnElement element) {
    if (isPlanItem(element)) {
      PlanItem planItem = (PlanItem) element;
      return planItem.getItemControl();
    } else
    if (isDiscretionaryItem(element)) {
      DiscretionaryItem discretionaryItem = (DiscretionaryItem) element;
      return discretionaryItem.getItemControl();
    }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

  }

  protected String getName(CmmnElement element) {
    String name = null;
    if (isPlanItem(element)) {
      PlanItem planItem = (PlanItem) element;
      name = planItem.getName();
    }

    if (name == null || name.isEmpty()) {
      PlanItemDefinition definition = getDefinition(element);
      if (definition != null) {
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

    return name;
  }

  protected PlanItemDefinition getDefinition(CmmnElement element) {
    if (isPlanItem(element)) {
      PlanItem planItem = (PlanItem) element;
      return planItem.getDefinition();
    } else
    if (isDiscretionaryItem(element)) {
      DiscretionaryItem discretionaryItem = (DiscretionaryItem) element;
      return discretionaryItem.getDefinition();
    }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

    return null;
  }

  protected Collection<Sentry> getEntryCriterias(CmmnElement element) {
    if (isPlanItem(element)) {
      PlanItem planItem = (PlanItem) element;
      return planItem.getEntryCriterias();
    }

    return new ArrayList<Sentry>();
  }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

    return new ArrayList<Sentry>();
  }

  protected Collection<Sentry> getExitCriterias(CmmnElement element) {
    if (isPlanItem(element)) {
      PlanItem planItem = (PlanItem) element;
      return planItem.getExitCriterias();
    }

    return new ArrayList<Sentry>();
  }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

  protected void initializeOnPart(PlanItemOnPart onPart, Sentry sentry, CmmnHandlerContext context) {
    CmmnActivity parent = context.getParent();
    String sentryId = sentry.getId();
    CmmnSentryDeclaration sentryDeclaration = parent.getSentry(sentryId);

    PlanItem source = onPart.getSource();
    PlanItemTransition standardEvent = onPart.getStandardEvent();

    if (source != null && standardEvent != null) {
      CmmnOnPartDeclaration onPartDeclaration = new CmmnOnPartDeclaration();

      // initialize standardEvent
      String standardEventName = standardEvent.name();
      onPartDeclaration.setStandardEvent(standardEventName);

      // initialize sourceRef
      String sourceId = source.getId();
      CmmnActivity sourceActivity = parent.findActivity(sourceId);

      if (sourceActivity != null) {
        onPartDeclaration.setSource(sourceActivity);
      }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

    return element.getExtensionElements();
  }

  protected PlanItemControl getItemControl(CmmnElement element) {
    if (isPlanItem(element)) {
      PlanItem planItem = (PlanItem) element;
      return planItem.getItemControl();
    } else
    if (isDiscretionaryItem(element)) {
      DiscretionaryItem discretionaryItem = (DiscretionaryItem) element;
      return discretionaryItem.getItemControl();
    }
View Full Code Here

Examples of org.camunda.bpm.model.cmmn.instance.PlanItem

  }

  protected String getName(CmmnElement element) {
    String name = null;
    if (isPlanItem(element)) {
      PlanItem planItem = (PlanItem) element;
      name = planItem.getName();
    }

    if (name == null || name.isEmpty()) {
      PlanItemDefinition definition = getDefinition(element);
      if (definition != null) {
View Full Code Here
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.