This method is used to control the file/directory creation event and the naming convention for the files/directories generated by a Receiver. 

Note: This will only work for Receivers that have dynamic configuration enabled.


The following GenRocket exceptions may be thrown by this method:  

  • If the requested domainName is not found.
  • If the requested receiverName is not found.
  • If the requested dynamicConfig is not found

Runtime Method Signature

Use this method signature when directly accessing the GenRocket binary runtime.

public void receiverAddDynamicConfig(String domainName, String receiverName, Map<String, Object> dynamicConfig)


Map fileConfig = [
    fileConfigEventName : "Constant",
    fileConfigEventParameters: ["count": "3"]

Map dirConfig = [
    dirConfigEventName : "Random",
    dirConfigEventParameters: ["startRange": "1", "endRange": "5", "seed":""]

List fileNameConfigs = [
   ["Constant": "SampleFile"], ["Constant":"_"], ["Counter": 1]

List dirNameConfigs = [
    ["Constant": "SampleDir"], ["Constant":"_"], ["Counter": 1]

Map dynamicConfig = [
    "fileConfig": fileConfig,
    "dirConfig": dirConfig,
    "fileNameConfig", fileNameConfigs
    "dirNameConfig", dirNameConfigs

engineManual.receiverAddDynamicConfig("Customer", "DelimitedFileReceiver", dynamicConfig)

REST/Socket Payload Request

Use this API JSON request payload when making an API call to the GenRocket REST or Socket Engine.

  "methodName": "receiverAddDynamicConfig",
  "parameters": {
    "domainName": "Customer",
    "receiverName": "DelimitedFileReceiver",
    "dynamicConfig": {
          "fileConfigEventParameters": {
          "dirConfigEventParameters": {
            "endRange": "5",
          {"Constant":"SampleFile", "Constant":"_", "Counter":"1"}
          {"Constant":"SampleDir", "Constant":"_", "Counter":"1"}

REST/Socket Payload Successful Payload Response

The API JSON response payload for this method will be empty.

  "responseType": "OK",
  "data": ""