Class StandardExpressionService

java.lang.Object
wt.services.StandardManager
com.ptc.windchill.option.expression.StandardExpressionService
All Implemented Interfaces:
ExpressionService, Serializable, wt.fc._NetFactor, NetFactor, wt.services.Manager

public class StandardExpressionService extends StandardManager implements ExpressionService, Serializable
Service class for Persisting ExpressionAssignable, Expressionable and ExpressionMemberLink and other utilities.

Supported API: true

Extendable: false
See Also:
  • Method Details

    • assignLocalExpression

      public Expressionable assignLocalExpression(Expressionable expressionAssignable, ComplexExpressionData expressionSpec, OptionSet optionSet, WTContainerRef containerRef) throws WTException
      API used to assign local expression.

      Supported API: true
      Specified by:
      assignLocalExpression in interface ExpressionService
      Parameters:
      expressionAssignable - objects that can have expressions assigned to to like Part, PartUsageLinks etc
      expressionSpec - ComplexExpressionData
      optionSet - OptionSet
      containerRef - WTContainerRef
      Returns:
      Expressionable
      Throws:
      WTException
    • assignLocalExpression

      public Expressionable assignLocalExpression(Expressionable expressionAssignable, ComplexExpressionData expressionSpec, OptionSet optionSet, WTContainerRef containerRef, boolean checkMergedChoices, boolean isDisplayFormatOverriden) throws WTException
      API used to assign local expression.

      Supported API: true
      Specified by:
      assignLocalExpression in interface ExpressionService
      Parameters:
      expressionAssignable - objects that can have expressions assigned to to like Part, PartUsageLinks etc
      expressionSpec - ComplexExpressionData
      optionSet - OptionSet
      containerRef - WTContainerRef
      checkMergedChoices - boolean
      isDisplayFormatOverriden - -flag for overriding choice display format preference and use number format
      Returns:
      Expressionable
      Throws:
      WTException
    • assignLocalExpression

      public void assignLocalExpression(WTCollection expressionables, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) throws WTException
      API used to assign local expression.

      Supported API: true
      Specified by:
      assignLocalExpression in interface ExpressionService
      Parameters:
      expressionables - WTCollection
      expressionSpec - ComplexExpressionData
      optionset - the OptionSet
      containerRef - WTContainerRef
      optionSet - OptionSet
      Throws:
      WTException
    • getAllExpressionAliases

      public WTCollection getAllExpressionAliases(WTContainerRef containerRef) throws WTException
      Get all latest expression aliases.

      Supported API: true
      Specified by:
      getAllExpressionAliases in interface ExpressionService
      Parameters:
      containerRef - the Container Reference
      Returns:
      WTCollection
      Throws:
      WTException
    • saveExpressionAlias

      public ExpressionAlias saveExpressionAlias(ExpressionAlias alias, ComplexExpressionData expressionSpec) throws WTException
      API used to save expression aliases

      Supported API: true
      Specified by:
      saveExpressionAlias in interface ExpressionService
      Parameters:
      alias - ExpressionAlias
      expressionSpec - ComplexExpressionData
      Returns:
      ExpressionAlias
      Throws:
      WTException
    • saveExpressionAlias

      public ExpressionAlias saveExpressionAlias(ExpressionAlias alias, ComplexExpressionData expressionSpec, WTContainerRef containerRef) throws WTException
      API used to save expression aliases

      Supported API: true
      Specified by:
      saveExpressionAlias in interface ExpressionService
      Parameters:
      alias - ExpressionAlias
      expressionSpec - ComplexExpressionData
      containerRef - Container Reference
      Returns:
      ExpressionAlias
      Throws:
      WTException
    • registerEvents

      public void registerEvents(ManagerService ms)
      Register events with the passed ManagerService.

      Supported API: true
      Specified by:
      registerEvents in interface wt.services.Manager
      Overrides:
      registerEvents in class StandardManager
      Parameters:
      ms - the ManagerService with which to register events.
      managerService - the ManagerService with which to register events.
    • assignDependentExpressions

      public WTArrayList assignDependentExpressions(Map<Expressionable,wt.option.ExpressionData> expressionableToExprDataMap, OptionSet optionSet) throws WTException
      API to assign multiple dependent Part, Part Usage, or Part Occurrence expressions. This API associates basic or advanced expression to the given Part, Part Usage, or Part Occurrence provided in the map as an argument. All the expression assignments must be successful or the entire set will roll back

      Supported API: true
      Specified by:
      assignDependentExpressions in interface ExpressionService
      Parameters:
      optionSet - the OptionSet
      Map - invalid input: '<'Expressionable,ExpressionData> Map of Part, Part Usage, or Part Occurrence as key invalid input: '&' ExpressionData as value.(BasicExpressionData or ComplexExpressionData)
      Returns:
      WTArrayList Updated Part, Part Usage, or Part Occurrence
      Throws:
      WTException
    • assignIndependentExpressions

      public WTArrayList assignIndependentExpressions(Map<wt.option.IndependentExpressionAssignable,Map<IndependentAssignedExpression,wt.option.ExpressionData>> expressionableToExprDataMap, OptionSet optionset) throws WTException
      API to assign multiple independent Part, Part Usage, or Part Occurrence expressions. This API associates independent expressions to the given Part, Part Usage, or Part Occurrence provided in the map as an argument. All the expression assignments must be successful or the entire set will roll back

      Supported API: true
      Specified by:
      assignIndependentExpressions in interface ExpressionService
      Parameters:
      Map - invalid input: '<'IndependentExpressionAssignable,Mapinvalid input: '<'IndependentAssignedExpression, ExpressionData>> Map of Part, Part Usage, or Part Occurrence as key invalid input: '&' Map invalid input: '<'IndependentAssignedExpression, ExpressionData> as value. The inner map will hold IndependentAssignedExpression as key(null in case new expression to be created) and expressionData as value(BasicExpressionData or ComplexExpressionData)
      optionSet - the OptionSet
      Returns:
      WTArrayList Updated independent assigned expressions.
      Throws:
      WTException