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
Supported API: true
Extendable: false
- See Also:
-
Field Summary
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE -
Method Summary
Modifier and TypeMethodDescriptionassignDependentExpressions(Map<Expressionable, wt.option.ExpressionData> expressionableToExprDataMap, OptionSet optionSet) API to assign multiple dependent Part, Part Usage, or Part Occurrence expressions.assignIndependentExpressions(Map<wt.option.IndependentExpressionAssignable, Map<IndependentAssignedExpression, wt.option.ExpressionData>> expressionableToExprDataMap, OptionSet optionset) API to assign multiple independent Part, Part Usage, or Part Occurrence expressions.voidassignLocalExpression(WTCollection expressionables, ComplexExpressionData expressionSpec, OptionSet optionset, WTContainerRef containerRef) API used to assign local expression.assignLocalExpression(Expressionable expressionAssignable, ComplexExpressionData expressionSpec, OptionSet optionSet, WTContainerRef containerRef) API used to assign local expression.assignLocalExpression(Expressionable expressionAssignable, ComplexExpressionData expressionSpec, OptionSet optionSet, WTContainerRef containerRef, boolean checkMergedChoices, boolean isDisplayFormatOverriden) API used to assign local expression.getAllExpressionAliases(WTContainerRef containerRef) Get all latest expression aliases.voidRegister events with the passed ManagerService.saveExpressionAlias(ExpressionAlias alias, ComplexExpressionData expressionSpec) API used to save expression aliases
Supported API: truesaveExpressionAlias(ExpressionAlias alias, ComplexExpressionData expressionSpec, WTContainerRef containerRef) API used to save expression aliases
Supported API: trueMethods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, setManagerService, shutdown, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
-
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:
assignLocalExpressionin interfaceExpressionService- Parameters:
expressionAssignable- objects that can have expressions assigned to to like Part, PartUsageLinks etcexpressionSpec- ComplexExpressionDataoptionSet- OptionSetcontainerRef- 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:
assignLocalExpressionin interfaceExpressionService- Parameters:
expressionAssignable- objects that can have expressions assigned to to like Part, PartUsageLinks etcexpressionSpec- ComplexExpressionDataoptionSet- OptionSetcontainerRef- WTContainerRefcheckMergedChoices- booleanisDisplayFormatOverriden- -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:
assignLocalExpressionin interfaceExpressionService- Parameters:
expressionables- WTCollectionexpressionSpec- ComplexExpressionDataoptionset- the OptionSetcontainerRef- WTContainerRefoptionSet- OptionSet- Throws:
WTException
-
getAllExpressionAliases
Get all latest expression aliases.
Supported API: true- Specified by:
getAllExpressionAliasesin interfaceExpressionService- 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:
saveExpressionAliasin interfaceExpressionService- Parameters:
alias- ExpressionAliasexpressionSpec- 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:
saveExpressionAliasin interfaceExpressionService- Parameters:
alias- ExpressionAliasexpressionSpec- ComplexExpressionDatacontainerRef- Container Reference- Returns:
- ExpressionAlias
- Throws:
WTException
-
registerEvents
Register events with the passed ManagerService.
Supported API: true- Specified by:
registerEventsin interfacewt.services.Manager- Overrides:
registerEventsin classStandardManager- 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 WTExceptionAPI 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:
assignDependentExpressionsin interfaceExpressionService- Parameters:
optionSet- the OptionSetMap- 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, throws WTExceptionwt.option.ExpressionData>> expressionableToExprDataMap, OptionSet optionset) 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:
assignIndependentExpressionsin interfaceExpressionService- 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
-