Class ESIProcessMaterialRenderer

All Implemented Interfaces:
ESIRenderer, com.ptc.windchill.esi.translation.ESITranslationRenderer

public class ESIProcessMaterialRenderer extends AbstractResourceRenderer
This class renders the output of MPMProcessMaterial (i.e. <ProcessMaterial> </ProcessMaterial>) in ESI response.

Supported API: true

Extendable: true
  • Method Details

    • getProcessMaterials

      @Deprecated protected Collection<MPMProcessMaterial> getProcessMaterials()
      Deprecated.
      Use AbstractResourceRenderer.getMpmResources() instead of this API.


      Supported API: true
      Gets the value of the attribute: processMaterials.
      Returns:
      Collection
    • buildGroups

      protected void buildGroups() throws ESIRendererException
      Output generator for the class. Does the following:
      1. Obtains the contents of the processMaterials collection.
      2. Finds the ESI targets associated with the processMaterials.
      3. Finds the most current released version of the processMaterial for each target.
      4. Compares the current version to the most current version. If they are the same and the effectivity has not changed, the processMaterial is ignored.
      5. If the processMaterial is not ignored, calls the Windchill Adapter to obtain all the attributes of the process material.
      6. Maps the result of the Windchill Adapter call.
      7. Calls adjustElement()
      8. If documents are required, calls the document renderer.


      Supported API: true
      Specified by:
      buildGroups in class BasicESIRenderer
      Throws:
      ESIRendererException - if any exception thrown by an ESIRenderer.