What is Peach
Installing
Tutorials
Methodology
Introduction
Training
Enterprise
FAQ
Support Forums
Peach 3
Peach Pits
 General Conf
 Data Modeling
 State Modeling
 Agents
  Monitors
 Test
  Publishers
  Loggers
Running
Minset
Peach 2.3

License

ExpressionFixup

The ExpressionFixup will evaluate a scripting expression that produces the new value for our element.

Parameters

  • ref — Reference to element

  • expression — Scripting expression to evaluate. Must return a string or integer value.

Scripting Variables

  • self — Fixup instance

  • ref — Referenced element

  • data — Referenced elements value as a byte array

Examples

<Block name="Header">
  <!-- .... -->

  <Number size="32">
    <Fixup class="ExpressionFixup">
          <Param name="ref" value="Data" />
          <Param name="expression" value="len(data) % 3" />
        </Fixup>
  </Number>
</Block>

<Blob name="Data" />