Interface MPMProcessPlanService

All Known Implementing Classes:
StandardMPMProcessPlanService

@RemoteInterface public interface MPMProcessPlanService
Service for the MPMProcessPlan related use cases

Supported API: true

Extendable: false
  • Method Details

    • getPartsFromOperation

      Map<CSCollectedFromObj,Persistable> getPartsFromOperation(MPMOperation operation, NCServerHolder nc_server_holder, FilteredStatus filter_status, boolean only_return_other_side) throws WTException


      Supported API: true
      Parameters:
      operation -
      nc_server_holder -
      filter_status -
      only_return_other_side -
      Returns:
      Throws:
      WTException
    • getAllocatedPartToStandardOperation

      Collection<MPMOperationToPartLink> getAllocatedPartToStandardOperation(MPMOperationHolder stdoperation, String operationPath, NavigationCriteria navigationCriteria) throws WTException


      Supported API: true
      Parameters:
      operationPath - - It is the path from immediate non standard Parent Operation ie normal operation of the Standard Operation.
      navigationCriteria - - The navigation criteria to use to filter the iterations for the masters used.
      standardOperation - - Standard Operation for which the operated on parts have to be searched
      Returns:
      Collection - Return the MPMOperationToPartLinks for the required Standard Operation
      Throws:
      WTException
    • getAllUsageLinksForAllocatedParts

      @Deprecated ArrayList<WTPartUsageLink> getAllUsageLinksForAllocatedParts(MPMOperationToPartLink operation_to_part_link, NCServerHolder nc_server_holder, boolean chkPartAllocationAtOccurrenceLevel) throws WTException
      Deprecated.
      Use
      invalid reference
      #getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)
      instead.
      Fetches the master of the assembly that the allocated parts belong in from the input operation to part link, and resolves the master to an iteration using the input NavigationCriteria. It then fetches the process plan from the input operation to part link and NavigationCriteria, and delegates the actual work of fetching the part usage links to an overloaded version of the method.

      Supported API: true
      Parameters:
      operation_to_part_link - Input operation to part link.
      nc_server_holder - NCServerHolder object holding the input NavigationCriteria.
      chkPartAllocationAtOccurrenceLevel - A boolean value that is simply passed in to the overloaded version of the method where the actual work is performed.
      Returns:
      An ArrayList of part usage links, as returned by the overloaded version; a null, if the master fetched from the input operation to part link could not be resolved to an iteration.
      Throws:
      WTException - If any of the invoked APIs threw this exception.
    • getPlantsFromSequenceHolder

      QueryResult getPlantsFromSequenceHolder(MPMSequenceHolder sequence_holder, NCServerHolder nc_server_holder, boolean only_return_other_side) throws WTException
      This method will return all plant objects associated with the given sequence holder.

      Supported API: true
      Parameters:
      sequence_holder - Sequence holder for which the associated plant objects have to be searched
      nc_server_holder - NCServerHolder that holds the Navigation Criteria
      only_return_other_side - If set to false it will return plant objects and plant assignment links, otherwise only the plant objects
      Returns:
      QueryResult Query result containing plant objects
      Throws:
      WTException
    • getAllUsageLinksForAllocatedParts

      @Deprecated ArrayList<WTPartUsageLink> getAllUsageLinksForAllocatedParts(WTPart bomIteration, MPMProcessPlan processPlanIteration, MPMOperationToPartLink operation_to_part_link, NCServerHolder nc_server_holder) throws WTException
      Deprecated.
      Use
      invalid reference
      #getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)
      instead.
      This method will get the assembly context from operation to part link which is a master. Then it will apply given Navigation criteria to fetch the iteration. After this it fetches the process plan for the operation given on OperationToPartLink. Then it will fetch all the Process Plan to part links and check that the iteration fetched from operation to part link is actually linked to processplan. After this it will try to find the allocated component and return all the usage links in the path from assembly to the component.
      Supported API: true
      Parameters:
      bomIteration -
      processPlanIteration -
      operation_to_part_link -
      nc_server_holder -
      Returns:
      Throws:
      WTException
    • getAllUsageLinksForAllocatedParts

      @Deprecated ArrayList<WTPartUsageLink> getAllUsageLinksForAllocatedParts(WTPart bomIteration, MPMOperationToPartLink operation_to_part_link, NCServerHolder nc_server_holder) throws WTException
      Deprecated.
      Use
      invalid reference
      #getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)
      instead.
      This method will get the assembly context from operation to part link which is a master. Then it will apply given Navigation criteria to fetch the iteration. After this it fetches the process plan for the operation given on OperationToPartLink. Then it will fetch all the Process Plan to part links and check that the iteration fetched from operation to part link is actually linked to processplan. After this it will try to find the allocated component and return all the usage links in the path from assembly to the component.
      Supported API: true
      Parameters:
      bomIteration -
      operation_to_part_link -
      nc_server_holder -
      Returns:
      Throws:
      WTException
    • getPartsFromCoProduceProcessPlan

      Set<CoProduce> getPartsFromCoProduceProcessPlan(MPMProcessPlan processPlan) throws WTException
      Takes a process plan and returns a Set of CoProduce bean which contains information about related CoProduce object, its primary and secondary objects along with inflated primary and secondary links. All the CoProduce beans are based on Latest ConfigSpec. Note: The CoProduceUsage links are not inflated in the CoProduce bean.

      Supported API: true
      Parameters:
      processPlan - for which related CoProduce part details to be obtained
      Returns:
      Set of CoProduce bean
      Throws:
      WTException
    • getMPMPartToProcessPlanLinksFromParts

      Map<ObjectReference,WTSet> getMPMPartToProcessPlanLinksFromParts(Set<WTPart> parts, boolean enforceLatestFlag) throws WTException
      Fetches all MPMPartToProcessPlanLink associated for each part in the part set and returns a Map<ObjectReference,WTSet> where key is the Part reference and value is WTSet of MPMPartToProcessPlanLink. If enforceLatestFlag is true , the value set will contain the latest version of the MPMPartToProcessPlanLink.

      Supported API: true
      Parameters:
      parts -
      enforceLatestFlag -
      Returns:
      Throws:
      WTException
    • associatePartToProcessPlan

      MPMPartToProcessPlanLink associatePartToProcessPlan(MPMProcessPlan processPlan, WTPart part) throws WTException
      Creates new MPMPartToProcessPlanLink associating WTPart and MPMProcessPlan and saves the link in database.

      Supported API: true
      Parameters:
      processPlan -
      part -
      Returns:
      Throws:
      WTException
    • removePartToProcessPlanLinks

      void removePartToProcessPlanLinks(WTPart part, Set<MPMProcessPlan> processPlans) throws WTException
      Checks out the each MPMProcessPlan if not already checked out and deletes the MPMPartToProcessPlanLink associated to the part and processPlan.

      Supported API: true
      Parameters:
      part -
      processPlans -
      Throws:
      WTException
    • getFirstLevelChildOperationHoldersAndUsages

      Map<MPMOperationHolder,IteratedUsageLink> getFirstLevelChildOperationHoldersAndUsages(List<MPMOperationHolder> opHolders, NCServerHolder ncHolder) throws WTException
      This method will get all first level child operations and usages present under the hierarchy of given operation holder.

      Supported API: true
      Parameters:
      opHolders - Operation holders
      ncHolder - NCServerHolder that holds the Navigation Criteria
      Returns:
      Map of all operations vs usages present under the hierarchy of given operation holder
      Throws:
      WTException