Versions Compared

Key

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

You’re using You will use a Feeder logic when you need to:

  • feedFeed/supply objects to process in another logic/process.

    • commonly Commonly used in the rebate allocation process.

Logic API

  • Logic Nature: default

    • Logic Type: Calculation/Pricing

  • Execution Types:

    • Syntax Check Input Generation - to define the input fields.

    • Standard - to find out which objects we want to process and emit those objects.

  • Information provided to the logic:

  • in In Standard mode:

    • input[] - values Values entered by the user in configuration of the process (e.g., usually the feeder inputs values entered on allocation calculation dataload Data Load configuration page).

    • api.currentItem() - the The context, in which it runs (likely the Dataload Data Load process definition).

  • Expected logic execution outcome

    from Syntax Check mode

    input

    :

    • From Input Generation mode:

      • Input field definitions

    • from From Standard mode execution:

      • emit Emit the objects to be processed by the process, which is using this Feeder. You can use several methods to achieve that, for example:

Code

sample

Sample

  • DL_BonusOnSales_Feeder - example Example of logic emitting the objects - in this case rebate recordsRebate Records.

  • DL_BonusOnSales_RebateAllocation - example Example of logic, which is consuming/using the objects (rebate recordsRebate Records) emitted by the Feeder logic.