Custom Input & Output logic

This Price Parameter table defines custom logics that can be run on the line item level.

Default Price Parameter table: CPQ_Default_Input_Output_Configuration

In this section:

Configurations

You can set the following options:

  • Generation Type – Available options are:

    • Header Input

    • Header Output

    • Custom Header

    • Line Item Input

    • Line Item Output

    • Folder Input

    • Folder Output

  • Name – Element name, will be used as the name of the generated output.

  • Label – Element label, will be used as the label of the generated output.

  • Input Type – The type of input to generate.

  • Output Type – The type of output to generate.

  • Processor – Select here an element on the CPQ line item level to run your element. There are 30 elements out of the box that can be configured to run your logic.

  • Library Name – Name of the library which contains the calculation for your element.

  • Element – Element from the library which contains the calculation for your element.

  • Function – Function from the library element which contains the calculation for your element.

  • Library runner – Defines in which phase the library should be run. The options are: Input, Output, or Both.

  • Skip

  • Priority

  • Result group

  • Format type

Custom Logic

Your logics should be defined in the Pricefx Groovy library. 

You need to provide the “library name”, “element name”, and “function name” of your library.

There are predefined objects that you can use in your function:

  • elements – Map of processed values.

  • header – Map of processed values in header processing.

Your function should not take any arguments and should return the value of your output.