Class RuleMemberActionLinkRenderer

java.lang.Object
com.ptc.windchill.esi.rnd.BasicESIRenderer
com.ptc.windchill.esi.ov.RuleMemberActionLinkRenderer
All Implemented Interfaces:
ESIRenderer

public class RuleMemberActionLinkRenderer extends BasicESIRenderer
This class renders the output of Link between Choice Rule and its action member.
ChoiceMappableChoiceLink in case of Basic Rules.
RuleMemberActionLink in case of Conditional Rules.


Supported API: true

Extendable: true
  • Method Details

    • buildGroups

      protected void buildGroups() throws ESIRendererException
      Populates the associated VdbBuilder instance with the response data for Rule Member Action link. It creates a collection of all the added, deleted, changed and unchanged rule member action links.

      Supported API: true
      Specified by:
      buildGroups in class BasicESIRenderer
      Throws:
      ESIRendererException
    • validate

      protected void validate() throws ESIRendererException
      Method ensures that the data needed to execute this renderer is passed in correctly.

      Supported API: true
      Specified by:
      validate in class BasicESIRenderer
      Throws:
      ESIRendererException
    • setData

      public void setData(Map<ChoiceRule,Set<RuleMemberActionBean>> _ruleMemberLinks, Persistable _pbo, Map<ChoiceRule,ChoiceRule> _currentPreviousChoiceRuleMap, Collection<ChoiceRule>[] _choiceRuleDiff, ESITarget _target, OptionSet previousExportedOptionSet)
      Establish the renderer's state so that it can process requests.

      Supported API: true
      Parameters:
      _ruleMemberLinks - : Map of choice rule and collection of rule member action beans
      _pbo - : Primary object on which publishing is executed
      _currentPreviousChoiceRuleMap - : Map of new current choice rule and already published choice rule iteration if any.
      _choiceRuleDiff - : Collection array of size 3 of choice rules. 0- Added, 1- Changed and 2 is index of unchanged rules.
      _target - : Current target
      previousExportedOptionSet - : Previously published option set
    • getActionName

      protected String getActionName(ChoiceRule choiceRule, ObjectToObjectLink actionMemberLink)
      Allow subclasses to fix the rule member action string.

      Supported API: true
      Parameters:
      choiceRule - : Rule
      actionMemberLink - : Link between rule and member action choice master. ChoiceMappableChocieLink in case of Include, Exclude and Enable rule. RuleMemberActionLink in case of conditional rule.
      Returns:
      String representation of Action
      Include Rule : SELECT
      Enable Rule : DISABLE_SIB
      Exclude Rule : MUTUALLY_EXCLUSIVE
      Conditional Rule : Action Mentioned in RuleMemberActionLink
    • adjustRuleMemberActionLinkElement

      protected com.infoengine.object.factory.Element adjustRuleMemberActionLinkElement(com.infoengine.object.factory.Element element, String groupName, Persistable memberActionLink, ChoiceRule choiceRule, Choice choice, Option option, Collection<ESITarget> targets)
      Allow subclasses to fix the contents of an element.

      Supported API: true
      Parameters:
      element - : Current IE*Element
      groupName - : Bucked Name
      memberActionLink - : Link between rule and member action choice master. ChoiceMappableChocieLink in case of Include, Exclude and Enable rule. RuleMemberActionLink in case of conditional rule.
      choiceRule - : Rule
      choice - : Member choice
      option - : Option of choice
      targets - : Current target
      Returns: