Question

Sometimes you need to evaluate the whole Quote and then pass that result to the line items.

Some of the use cases:

In both these examples we need to pass some information from the header logic to the line item.

Answer

The only way to pass information from the header logic to the line item is via the "hidden" input for the line item.

But you must take in account that you cannot do this in the pre-phase. This will work only in the post-phase.

This is not acceptable in some cases; for example, if a new product line has just been added to the Quote (either manually by the user or by a pre-phase header logic).

In some scenarios there is a useful workaround: you can store any information into a "hidden" input of the ROOT folder (even a map, not only numbers and strings). So you can, for example, in the pre-phase store a map where Key=LineId and Value=your_value and then in the post-phase you can read it from there and pass it to the hidden input of the line.