Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The following automatic variables are available in the Groovy logic elements:

Formula NatureAvailabilityAllow data update?VariableData TypeNotes
Any
Everywhere


AnywhereNo

api

lib.

PublicGroovyAPI
inputMapMap of input values sent to the logic.
outMapMap of values of previously calculated elements.

<element name>.<function name>

Call of the

Calls a function defined in a
logic in Groovy Library. (Groovy library must have only one logic, that is why you do not specify the logic name here.)
different element of the logic.

Deprecated: lib.<element name>.<function name>


Calls a function from a Groovy Library logic named __LIBRARY__.

This call does not allow nesting of library calls.

libs.<library name>.<element name>.<function name>
Call function defined in a different element of the logic.Rebate recordcalculationBase

Calls a function from a Groovy Library logic of a given name.

This call allows nesting of library calls.

rebateAgreementHeaderRebate record?

rebateagreement

Map
rebateAgreementEntitlementFilter
No

rebateagreement

calculationBase

Map



contractHeaderOnly in ContractBuilder logic?cProcessorContractBuilder
quoteHeaderOnly in Admin > Configuration >
Quote Configurator
QuoteConfigurator > Quote Header
Formulas
Logics?quoteProcessorQuoteBuilder

Only in Admin > Configuration >
Rebate Manager
RebateManager > Rebate Agreement Template
Formulas
Logics?ratBuilderRATBuilder
rebateAgreementHeaderOnly in Admin >
Rebate Manager
RebateManager > Rebate Agreement Header
Formula
Logics?raProcessorRebateAgreementBuilder
rebateAgreementIRebateRecordManager?rebateRecordsIRebateRecordManager
contractTermTypeFilter
contractEntitlementFilter

NocontractMap

customerInputFilter

productInputFilter

sellerInputFilter

Customer input filter

Product input filter

Seller input filter

NofilterFormulaParamString

String parameter value that can be passed from the builder, e.g.:

api.inputBuilderFactory()
.createProductGroupEntry("...")
.setFilterFormulaName("...")
.setFilterFormulaParam(param)
customFormHeader
?customFormProcessorCustomFormCollectionBuilder
calculationFlowCalculationFlowActionBuilderYesactionBuilderCalculationFlowActionBuilder

parameterizedCalculationFlow

CalculationFlowActionBuilderYesactionBuilderCalculationFlowActionBuilder
triggeredObj
Map<String, Object>

Object that triggered CF

Only used for PriceGrids

triggeredObjTypedId
StringTypedId of the object that triggered CF
Only usedĀ for PriceGrids
paDataLoad
Yes


distPACalc
?distDistFormulaContext

model

model_calculation

model_evaluation

Model?model

ModelEvaluationFormulaContext

ModelParallelCalculationFormulaInitContext



WorkflowBuilderManager?workflow
Data type: WorkflowDTO

WorkflowDTOAPI for defining approval or watcher steps
submitter
quote
pricegriditem
rebateagreement
Map

One of

  • calculationgriditem
  • claim
  • compensation
  • compensationrecord
  • contract
  • customform
  • dcr (DataChangeRequest)
  • dealplan
  • model
  • modelrecord
  • pricelist
  • quote
  • pricegridite
  • rebateagreement
  • rebaterecord
Data type: Map
MapDocument submitted for an approval
wfStepLogicPost stepYes

approvable

Map

Document submitted for an approval
workflowHistory

WorkflowInfo

API for getting the information on approval steps
currentWorkflow
InsertWorkflowStepsDTOAPI for adding an additional approval or watcher step