Class ESIPromotionRequestRenderer
java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.promotionrequest.ESIPromotionRequestRenderer
- All Implemented Interfaces:
ESIRenderer
This class renders a Promotion Request.
Supported API: true
Extendable: true
Supported API: true
Extendable: true
-
Field Summary
Fields inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
adapterName, authentication, currentTarget, DELIMITER, objectTypeDefs, OPTIONSVARIANTS_HELPER_CLASS_STRING, SEPARATOR, taskHelper, XML_META_NAME -
Method Summary
Modifier and TypeMethodDescriptionprotected com.infoengine.object.factory.ElementadjustPromotionRequestHeaderElement(com.infoengine.object.factory.Element element, String group, PromotionNotice promotionRequest, Collection<ESITarget> targets) Allow subclasses to fix the contents of the input element.protected voidRenders the promotion request and all its associated promotables.protected Set<Releasable> getPromotables(PromotionNotice promotionRequest) Returns the set of promotables that are implementing 'Releasable' interface and also if any promotable is ProcessPlan.com.infoengine.object.IeCollectiongetPromotionRequest(String objectID, ESITransaction txn, Collection<ESITarget> targets, String auth) Renders the input promotion request and returns the output as an Info*Engine collection to the caller.Deprecated.voidInitializes this renderer instance appropriately.protected voidvalidate()Makes sure that the renderer is in proper state before processing.Methods inherited from class com.ptc.windchill.esi.rnd.BasicESIRenderer
addAtt, adjustConfigurableAndCollapsibleAtts, adjustDateEffCxt, adjustDateEffectivities, adjustEffectivities, adjustLotNumberEffCxt, adjustLotNumberEffectivities, adjustObjectID, adjustSerialNumberEffCxt, adjustSerialNumberEffectivities, adjustTargets, buildUfidString, evaluateBussinessRule, fetchLatestEffectivities, formatDateEffectivityElement, getAdapterName, getAssignedVariantSpec, getAssignedVariantSpec, getAUMRenderer, getBuilder, getEffectivityElementMap, getEffectivityHandler, getEffectivityTargetAttributes, getElements, getERPMaterialAttributeList, getERPMaterialAttributeList, getERPMaterialTargetAttributes, getFormatedDate, getGroupInfo, getGroupInfo, getGroupInfo, getMap, getMap, getMapInfo, getMapInfo, getMapInfo, getNavigationFilter, getObjectTypeDefs, getPlantSpecificAttributeList, getPlantSpecificAttributeList, getPlantSpecificTargetAttributes, getPreviousObject, getPreviousPublishedEffectivity, getTargetsFromAssns, getTargetUtility, getTransactionUtility, getUnwantedAttributes, getVersionRefObjectRefMap, getWCAttributeList, getWCAttributeList, initEffectivityHandler, initializeElementForGroup, invokeQueryTask, invokeQueryTask, invokeQueryTask, invokeQueryTaskForObjects, isExpressionToBePublished, isGroupAvailable, isPublishAssocOptionSetFlagEnabled, mapDateEffectivities, mapEffectivities, mapEffectivityAttributes, mapEffectivityElement, mapEffectivityParentElement, mapElement, mapElement, mapElement, mapElementWithEffectivityAttrs, mapLotNumberEffectivities, mapObject, mapObject, mapSerialNumberEffectivities, mergeElements, overrideAttrValue, populateDateEffectivityInfo, populateEffectivityInfo, processBussinessRulesWithAnd, processBussinessRuleValidationResultSet, processNoMatchingVersionFound, removeAttributesNotRequired, removeUnwantedEffectivityAttributes, render, renderAssociatedSkinnyVariantSpec, renderAssociatedVariantSpec, renderAssocOptionSetLinks, renderAssocSkinnyVariantSpec, renderAssocVariantSpec, renderATONavigationFilter, renderChoiceRules, renderEffectivities, renderEffectivities, renderExpressions, renderOptionSets, renderRoleBObjectOfModuleVariantLink, setAttrValue, setAttrValue, setAttrValues, setBuilder, setCurrentTarget, setCurrentTarget, setCurrentTargetFromTgtAssocs, setEffectivityHandler, setObjectTypeDefs, setObjectTypeDefs, setObjectTypeDefsFromObj, setStartEndEffAttr, setTransactionUtility, shallPublishAssocOptionSet, shouldRenderEffectivityElementInPartElement, shouldUseOldEffectivityBehaviour, storeCurrentAndItsPreviousObject, storeCurrentAndItsPreviousObject
-
Method Details
-
getPromotionRequest
public com.infoengine.object.IeCollection getPromotionRequest(String objectID, ESITransaction txn, Collection<ESITarget> targets, String auth) throws WTException Renders the input promotion request and returns the output as an Info*Engine collection to the caller. For each distribution target in the input targets collection, it renders the promotion request and all its associated promotables and finally creates release activities as appropriate. The settings pertaining to ESI response generation for a given distribution target are fetched from the target itself. Additionally this method renders the children of the assembly which is added as a promotable to the input promotion request, if they are associated with any additional targets than their parent.
Supported API: true- Parameters:
objectID- - UFID of the promotion request to be rendered. Should not be a null.txn- - Transaction object that represents the delivery of data to the distribution targets in targets collection.targets- - Collection of distribution targets. Should not be a null.auth- - This parameter contains authentication information required for executing certain Windchill adapter webjects as part of the rendering process.- Returns:
- The Info*Engine collection that holds the ESI response.
- Throws:
WTException- if any of the invoked methods throws this exception.
-
setData
Initializes this renderer instance appropriately.
Supported API: true- Parameters:
objectID- - UFID of the promotion request to be rendered.target- distribution target for which promotion request need to be processed.auth- - Authentication information for Info*Engine tasks.transactionID- - The number of the transaction to associate with the output from this renderer.
-
buildGroups
Renders the promotion request and all its associated promotables. Delegates the work tobuildPromotionRequestHeader(PromotionNotice, ESITarget)andbuildPromotables(PromotionNotice, ESITarget)APIs.
Supported API: true- Specified by:
buildGroupsin classBasicESIRenderer- Throws:
ESIRendererException
-
adjustPromotionRequestHeaderElement
protected com.infoengine.object.factory.Element adjustPromotionRequestHeaderElement(com.infoengine.object.factory.Element element, String group, PromotionNotice promotionRequest, Collection<ESITarget> targets) throws ESIRendererException Allow subclasses to fix the contents of the input element. Currently this API simply returns the input element.
Supported API: true- Parameters:
element- - I*E Element whose contents need to be fixed.group- - Name of the group in ESI response for which to adjust the I*E element.promotionRequest- - Promotion Request.targets- - Collection of ESITarget objects.- Returns:
- Simply returns the input element.
- Throws:
ESIRendererException
-
validate
Makes sure that the renderer is in proper state before processing. Validates "objectID", "auth" and "transactionID".
Supported API: true- Specified by:
validatein classBasicESIRenderer- Throws:
ESIRendererException
-
getWcAdapter
Deprecated.Returns the value of the attribute adapterName. This attribute holds the name of the Windchill Adapter instance where the Query-Objects webject is to be executed.- Returns:
- The value stored in the field adapterName.
-
getPromotables
protected Set<Releasable> getPromotables(PromotionNotice promotionRequest) throws WTException, MaturityException Returns the set of promotables that are implementing 'Releasable' interface and also if any promotable is ProcessPlan.
Supported API: true- Parameters:
promotionRequest- - The promotion request to get promotables- Returns:
- - The set of promotable object implementing 'Releasable' interface
- Throws:
WTExceptionMaturityException
-
BasicESIRenderer.getAdapterName()instead.Supported API: true