Whitelisted Objects/Classes

Instances of classes listed here can be used in calculation logics. If you use any other, you get the "Unexpected type" error message. 

General Type Objects

  • AbstractCollection
  • AbstractProducer.ResultIterator
  • ApprovalState  
  • AttributedResult
  • BoMTreeRecord
  • Boolean
  • CalculationResult
  • Calendar
  • Closure
  • ConfiguratorEntry
  • ContextParameter
  • CustomerGroup
  • DashboardController
  • DataLoader
  • DatamartContext
  • DatamartQueryResult
  • DatamartRowSet
  • Date
  • DateTime
  • DateTime.Property
  • DateTimeZone
  • DMCalendar
  • DMCalendar.TimeDim
  • DMCalendar.TimePeriod
  • DMCalendar.TimeUnit
  • DMDataSlice
  • Exception
  • FieldFormatType
  • FieldType
  • FieldValues
  • Filter
  • GPathResult
  • GStringImpl
  • InputType
  • Integer
  • InvariantContext
  • IRebateRecordManager
  • ISandboxAPI
  • ItemSummaryQuery
  • Key
  • LibraryMethod
  • List
  • Long
  • Map
  • Map.Entry
  • MathContext
  • Matrix2D
  • Matrix2D.Matrix2DIterator
  • net.pricefx.server.util.metamodel.Column
  • net.pricefx.server.util.metamodel.dm.Column
  • net.pricefx.server.util.metamodel.dm.Query
  • net.pricefx.server.util.metamodel.dm.Table
  • net.pricefx.server.util.metamodel.Query
  • net.pricefx.server.util.metamodel.Table
  • Number
  • java.util.HashMap$Values
  • Object[]
  • org.apache.metamodel.query.Query
  • org.apache.metamodel.schema.Table
  • PriceFxException
  • ProductGroup
  • QuoteStructure
  • QuoteStructure.Item
  • Random
  • ResultDashboard
  • ResultFlexChart
  • ResultGauge
  • ResultMatrix
  • ResultMatrix.ResultMatrixImageCell
  • ResultMatrix.ResultMatrixLinkCell
  • ResultMatrix.ResultMatrixOnRowSelection
  • ResultMatrix.ResultMatrixOnRowSelection.TriggerEvent
  • ResultMatrix.ResultMatrixStyledCell
  • ResultQuote
  • ResultRebateRecord
  • RoundingMode
  • SandboxAPI
  • SandboxScriptBase
  • Schema
  • ScrollableResults
  • Set
  • StreamResults
  • String
  • SummaryCalculableObjectItem
  • TableContext
  • TieredValue
  • TieredValue.Tier
  • TimedObjectStatus
  • TimeoutException
  • WorkflowInfo
  • WorkflowStepInfo

Workflow Objects

In workflow logics or in libraries:

  • ApprovalStepDTO
  • WatcherStepDTO
  • WorkflowDTO

Domain Objects

Domain objects (Product, Customer, PriceRecord...) are converted into a map.

Classes

These classes are whitelisted, so that you can call static methods on them. 

  • BigDecimal
  • BuilderExtensions
  • Calendar
  • Closure
  • ConfiguratorEntry
  • CustomerGroup
  • Date
  • DateTime
  • DMCalendar
  • DMDataSlice
  • FieldFormatType
  • Filter
  • InputType
  • Integer
  • Math
  • Matrix2D
  • Node
  • PriceFxException
  • ProductGroup
  • QuoteStructure
  • ResultMatrix
  • String
  • StringBuffer
  • StringBuilder
  • TieredValue
  • TimeoutException
  • TimePeriod
  • TimeUnit

Special Cases

These types are allowed and are subject to some other internal processing. 

  • ChartBuilderResult
  • FormulaElementResult


See also: Groovy Sandbox


Found an issue in documentation? Write to us.