Interface MPMProcessPlanService
- All Known Implementing Classes:
StandardMPMProcessPlanService
Service for the MPMProcessPlan related use cases
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionassociatePartToProcessPlan(MPMProcessPlan processPlan, WTPart part) Creates newMPMPartToProcessPlanLinkassociatingWTPartandMPMProcessPlanand saves the link in database.getAllocatedPartToStandardOperation(MPMOperationHolder stdoperation, String operationPath, NavigationCriteria navigationCriteria)
Supported API: truegetAllUsageLinksForAllocatedParts(MPMOperationToPartLink operation_to_part_link, NCServerHolder nc_server_holder, boolean chkPartAllocationAtOccurrenceLevel) Deprecated.getAllUsageLinksForAllocatedParts(WTPart bomIteration, MPMProcessPlan processPlanIteration, MPMOperationToPartLink operation_to_part_link, NCServerHolder nc_server_holder) Deprecated.Useinstead.invalid reference
#getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)getAllUsageLinksForAllocatedParts(WTPart bomIteration, MPMOperationToPartLink operation_to_part_link, NCServerHolder nc_server_holder) Deprecated.Useinstead.invalid reference
#getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)getFirstLevelChildOperationHoldersAndUsages(List<MPMOperationHolder> opHolders, NCServerHolder ncHolder) This method will get all first level child operations and usages present under the hierarchy of given operation holder.getMPMPartToProcessPlanLinksFromParts(Set<WTPart> parts, boolean enforceLatestFlag) Fetches allMPMPartToProcessPlanLinkassociated for each part in the part set and returns aMap<ObjectReference,where key is the Part reference and value isWTSet> WTSetofMPMPartToProcessPlanLink.getPartsFromCoProduceProcessPlan(MPMProcessPlan processPlan) 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.getPartsFromOperation(MPMOperation operation, NCServerHolder nc_server_holder, FilteredStatus filter_status, boolean only_return_other_side)
Supported API: truegetPlantsFromSequenceHolder(MPMSequenceHolder sequence_holder, NCServerHolder nc_server_holder, boolean only_return_other_side) This method will return all plant objects associated with the given sequence holder.voidremovePartToProcessPlanLinks(WTPart part, Set<MPMProcessPlan> processPlans) Checks out the eachMPMProcessPlanif not already checked out and deletes theMPMPartToProcessPlanLinkassociated to the part and processPlan.
-
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
-
getAllUsageLinksForAllocatedParts
@Deprecated ArrayList<WTPartUsageLink> getAllUsageLinksForAllocatedParts(MPMOperationToPartLink operation_to_part_link, NCServerHolder nc_server_holder, boolean chkPartAllocationAtOccurrenceLevel) throws WTException Deprecated.Useinstead.invalid reference
#getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)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 searchednc_server_holder- NCServerHolder that holds the Navigation Criteriaonly_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.Useinstead.invalid reference
#getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)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.Useinstead.invalid reference
#getAllAssociativeUsageLinksForAllocatedParts(WTPart, MPMProcessPlan, MPMOperationToPartLink)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
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 allMPMPartToProcessPlanLinkassociated for each part in the part set and returns aMap<ObjectReference,where key is the Part reference and value isWTSet> WTSetofMPMPartToProcessPlanLink. If enforceLatestFlag is true , the value set will contain the latest version of theMPMPartToProcessPlanLink.
Supported API: true- Parameters:
parts-enforceLatestFlag-- Returns:
- Throws:
WTException
-
associatePartToProcessPlan
MPMPartToProcessPlanLink associatePartToProcessPlan(MPMProcessPlan processPlan, WTPart part) throws WTException Creates newMPMPartToProcessPlanLinkassociatingWTPartandMPMProcessPlanand saves the link in database.
Supported API: true- Parameters:
processPlan-part-- Returns:
- Throws:
WTException
-
removePartToProcessPlanLinks
Checks out the eachMPMProcessPlanif not already checked out and deletes theMPMPartToProcessPlanLinkassociated 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 holdersncHolder- NCServerHolder that holds the Navigation Criteria- Returns:
- Map of all operations vs usages present under the hierarchy of given operation holder
- Throws:
WTException
-
invalid reference