Interface ExpressionService

All Known Implementing Classes:
StandardExpressionService

@RemoteInterface public interface ExpressionService
A service to create/modify Expressionable and ExpressionMemberLink objects.

Supported API: true

Extendable: false
  • Method Details

    • getExpressionMembers

      Map<String,wt.option.ExpressionMember> getExpressionMembers(Expressionable expressionable, OptionSet optionset) throws WTException
      API to get the ExpressionMembers for an Expressionable.

      Supported API: true
      Parameters:
      expressionable - the Expressionable
      optionset - the OptionSet, if not null, the expression members will be evaluated against this OptionSet
      Returns:
      Mapinvalid input: '<'String, ExpressionMember>
      Throws:
      WTException
    • assignLocalExpression

      Expressionable assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) throws WTException
      API to assign a Local Expression to the ExpressionAssignable.

      Supported API: true
      Parameters:
      expressionable - the Expressionable
      expressionSpec - the expression data
      optionset - the OptionSet
      containerRef - the container reference
      Returns:
      the ExpressionAssignable
      Throws:
      WTException
    • assignLocalExpression

      Expressionable assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef, boolean checkMergedChoices) throws WTException
      API to assign a Local Expression to the ExpressionAssignable.

      Supported API: true
      Parameters:
      expressionable - the Expressionable
      expressionSpec - the expression data
      optionset - the OptionSet
      containerRef - the container reference
      checkMergedChoices - a flag to verify that the expression has merged choices
      Returns:
      the ExpressionAssignable
      Throws:
      WTException
    • assignLocalExpression

      Expressionable assignLocalExpression(Expressionable expressionable, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef, boolean checkMergedChoices, boolean isDisplayFormatOverriden) throws WTException
      API to assign a Local Expression to the ExpressionAssignable.

      Supported API: true
      Parameters:
      expressionable - the Expressionable
      expressionSpec - the expression data
      optionset - the OptionSet
      containerRef - the container reference
      checkMergedChoices - a flag to verify that the expression has merged choices
      isDisplayFormatOverriden - -flag for overriding choice display format preference and use number format
      Returns:
      the ExpressionAssignable
      Throws:
      WTException
    • assignLocalExpression

      void assignLocalExpression(WTCollection expressionables, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) throws WTException
      API to assign a Local Expression to the ExpressionAssignable.

      Supported API: true
      Parameters:
      expressionables - the Expressionable
      expressionSpec - the expression data
      optionset - the OptionSet
      Throws:
      WTException
    • assignIndependentExpression

      IndependentAssignedExpression assignIndependentExpression(wt.option.IndependentExpressionAssignable expressionAssignable, IndependentAssignedExpression expressionable, OptionSet optionset, wt.option.ExpressionData expressionSpec) throws WTException
      API to assign an individual expression, initialize IndependentAssignedExpression and call this API if an existing IndependentAssignedExpression is passed, it will update the object with the new expression.

      Supported API: true
      Parameters:
      expressionAssignable - the ExpressionAssignable
      expressionable - the Expressionable
      optionset - the OptionSet
      expressionSpec - the expression data
      Returns:
      the IndependentAssignedExpression
      Throws:
      WTException
    • assignDependentExpressions

      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
      Parameters:
      Map - invalid input: '<'Expressionable,ExpressionData> Map of Part, Part Usage, or Part Occurrence as key invalid input: '&' ExpressionData as value.(BasicExpressionData or ComplexExpressionData)
      optionSet - the OptionSet
      Returns:
      WTArrayList Updated Part, Part Usage, or Part Occurrence
      Throws:
      WTException
    • assignIndependentExpressions

      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
      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