You will use a Feeder logic when you need to:
-
Feed/supply objects to process in another logic/process.
-
Commonly used in the rebate allocation process.
-
Logic API
-
Logic Nature: default
-
Logic Type: Calculation/Pricing
-
-
Execution Types:
-
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 Standard mode:
-
input[]
- Values entered by the user in configuration of the process (e.g., usually the feeder inputs values entered on allocation calculation Data Load configuration page). -
api.currentItem()
- The context, in which it runs (likely the Data Load process definition).
-
-
Expected logic execution outcome:
-
From Input Generation mode:
-
Input field definitions
-
-
From Standard mode execution:
-
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
-
DL_BonusOnSales_Feeder - Example of logic emitting the objects - in this case Rebate Records.
-
DL_BonusOnSales_RebateAllocation - Example of logic, which is consuming/using the objects (Rebate Records) emitted by the Feeder logic.