The Value Injector block receives a discrete event message and either adds new message fields or overwrites one or more of the existing message fields and sends the modified discrete message through its output port.
The Value Injector block operates in the following manner:
Example When triggered by the empty discrete event message output from the Loop block, the Value Injector block uses its internal formula to retrieve the price and quantity from their respective blocks and adds these values to the message before sending it to a Value Bucket block.
When using the Value Injector block, it is important to recognize that every discrete event message is composed of multiple "fields," with numeric or true/false values assigned to each. For instance, a discrete event message generated from a fill will contain a numeric value in the fillPrice and the fillQuantity fields. But it will contain zero's for other irrelevant fields, such as deletedQuantity.
Note A single Value Injector block can over-write multiple fields of the incoming message.
You can use the Field Formula Editor to define formulas for one or more values to inject into the output discrete event message.
To customize the block, update the Block Properties.
Property | Description |
---|---|
Name | Name to display beneath the block on the ADL canvas |
Formulas |
Equations used to overwrite the values of different fields in the block The edit link opens the Fields Formula Editor. |