Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: PFUN-16763

...

  • Use api.getElement("CustomerGroup").customerFieldValue, depending on what is in the CustomerGroup element.
  • First define the CustomerGroup element, set Display Mode to Never:

    Code Block
    titleCustomerGroup
    api.customerGroupEntry()


  • Then in any other element doing the calculations, use a syntax checkthe input generation mode.
    Also, set Display Mode of this element to Quoting at least.

    Code Block
    titleSomeOtherElement
    if (api.isSyntaxCheckisInputGenerationExecution()) return //as the first line
    if (api.getElement("CustomerGroup").customerFieldName == "customerId") {
      return api.getElement("CustomerGroup").customerFieldValue
    }


About

...

It is used in two use cases:

...

Input Generation Mode

Usually, every logic is run twice. In the first run, it just needs to see all calls to the methods which define input params (and so

...

isInputGenerationExecution is set to true). Otherwise it is a normal logic run and this variable is set to false. The first run is really needed for the system to know what inputs the logic will generate.

Info

For more details on isInputGenerationExecution (formerly isSyntaxCheck), see Miscellaneous Functions.

...