Share this page

# Define Rule Functions

This task describes how to define rule functions to impact virtual service behavior.

To learn more about functions, see Rule Functions.

In this topic:

## Select a function

1. In the Data Model Editor, expand a rule.

2. Click inside the function field (fx) for a column and select a function. If the function row is not displayed, from the View Options menu, select Functions.

3. Dynamic Data Functions:

   1. Click inside the function field (fx) of a response column and select a function.

      Note: Dynamic data functions are available for lowest level headers only. Complex headers that include lower level headers under them are displayed in italic text (header). To display lower level headers, double-click the column header.

   2. Configure the output format for the function. For details on configuring dynamic data functions, see Configure Dynamic Data Functions.

Back to top

## Create a new, custom function

1. In the Data Model Editor, expand a rule.

2. Click inside the function field (fx) for a column and select New f(x). For user interface details, see New/Edit Function Dialog Box.

   Custom Functions: Service Virtualization provides a number of pre-defined variables that you can use when creating and configuring custom functions. For details, see Define Custom Functions.

Back to top

## Preview your changes

Simulation Preview displays in real time how changes in the data model are affecting the simulation.

In the Data Model Editor, select View Options > Simulation Preview. The Simulation Preview pane displays a simulation of a message whose request matches the currently selected message in the Data Model Editor. The message is passed to the simulation engine and the result is displayed in the response section.

Back to top

https://admhelp.microfocus.com Service Virtualization 8942
Tips to improve your search results... Service Virtualization Help Center SV Help 5.4-5.4.1 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: