Hello, I need to use fme server rest api to make a web service application to convert cad to kml. The parameters in the workspace cannot be fixed. How can I set the parameters to the client on the web for better interaction?
You'll need to supply a json body with the published parameters for your workspace. There's an example of how to do that in the /transformations/submit endpoint.
This is the sample for the AustinDownload workspace that is installed in FME Server by default. Note that for the paramters it's an array of name/value pairs
{
  "publishedParameters": a
    {
      "name": "MAXY",
      "value": "42"
    },
    {
      "name": "THEMES",
      "value": b
        "airports",
        "cenart"
      ]
    }
  ],
  "TMDirectives": {
    "rtc": false,
    "ttc": 60,
    "description": "This is my description",
    "tag": "linux",
    "ttl": 60
  },
  "NMDirectives": {
    "directives": c
      {
        "name": "email_to",
        "value": "example@safe.com"
      }
    ],
    "successTopics": Â
      "SAMPLE_TOPIC"
    ],
    "failureTopics": n]
  }
}
You'll need to supply a json body with the published parameters for your workspace. There's an example of how to do that in the /transformations/submit endpoint.
This is the sample for the AustinDownload workspace that is installed in FME Server by default. Note that for the paramters it's an array of name/value pairs
{
  "publishedParameters": a
    {
      "name": "MAXY",
      "value": "42"
    },
    {
      "name": "THEMES",
      "value": b
        "airports",
        "cenart"
      ]
    }
  ],
  "TMDirectives": {
    "rtc": false,
    "ttc": 60,
    "description": "This is my description",
    "tag": "linux",
    "ttl": 60
  },
  "NMDirectives": {
    "directives": c
      {
        "name": "email_to",
        "value": "example@safe.com"
      }
    ],
    "successTopics": Â
      "SAMPLE_TOPIC"
    ],
    "failureTopics": n]
  }
}
Hello, I am very happy to receive your reply, how can I expose the posted parameters to the list for client interaction. There is also an example of reading and writing parameters. How can the parameters of my Data Transformations interact?
Hello, I am very happy to receive your reply, how can I expose the posted parameters to the list for client interaction. There is also an example of reading and writing parameters. How can the parameters of my Data Transformations interact?
The REST API help also shows url examples, if you want to let your users set the parameters you'll need to work with a web form. Take a look at the FME Server Playground (and the demos) for inspiration.
You'll need to supply a json body with the published parameters for your workspace. There's an example of how to do that in the /transformations/submit endpoint.
This is the sample for the AustinDownload workspace that is installed in FME Server by default. Note that for the paramters it's an array of name/value pairs
{
  "publishedParameters": a
    {
      "name": "MAXY",
      "value": "42"
    },
    {
      "name": "THEMES",
      "value": b
        "airports",
        "cenart"
      ]
    }
  ],
  "TMDirectives": {
    "rtc": false,
    "ttc": 60,
    "description": "This is my description",
    "tag": "linux",
    "ttl": 60
  },
  "NMDirectives": {
    "directives": c
      {
        "name": "email_to",
        "value": "example@safe.com"
      }
    ],
    "successTopics": Â
      "SAMPLE_TOPIC"
    ],
    "failureTopics": n]
  }
}
?????KML????