Simulation@1
The Simulation@1
node is used to simulate a variety of variables.
Adapter Prerequisites
Node Configuration
transformations:
- type: Simulation@1
simulations:
- targetPath: $.customer.customerNumber # Path where the update info object should be stored in the payload
simulatorKey: Math.IntRandom # The Key for the Simulation node. Default is "increment". See comprehensive list below.
configuration: "{min: 0, max:5}" # Optionally some simulator keys allow for additonal configuration. See comprehensive list below.
This implementaion is based on Bogus.
Address
- simulatorKey: Address.Country
- simulatorKey: Address.CountryCode
- simulatorKey: Address.ZipCode
configuration: "{ format: #### }"
- simulatorKey: Address.City
- simulatorKey: Address.StreetAddress
- simulatorKey: Address.StreetName
- simulatorKey: Address.BuildingNumber
Person
- simulatorKey: Person.FirstName
- simulatorKey: Person.LastName
- simulatorKey: Person.Email
- simulatorKey: Person.DateOfBirth
- simulatorKey: Person.Company
- simulatorKey: Person.Gender
Math
- simulatorKey: Math.Sinus
configuration: "{ amplitude: 1, frequency: 1 }"
- simulatorKey: Math.Triangle
configuration: "{ amplitude: 1, frequency: 1 }"
- simulatorKey: Math.Constant
configuration: "{ amplitude: 1 }"
- simulatorKey: Math.IntRandom
configuration: "{ min: 1, max: 100 }"
Text
- simulatorKey: Text.Lorem.Word
configuration: "{ count: 1 }"