webserviceTrigger
The Job can be triggered by calling a URL in the browser (HTTP GET) or via an HTTP Webservice call (HTTP POST). Any key-value pairs can be included in sending via the URL parameter (HTTP GET) or in the Request body (HTTP POST). These are accessed in the job definition via trigger.params. You can also transfer the data in the form of a JSON structure.
The progress page for the created Job is displayed as the response.
Request | POST /api/jobs/request/WebShopNoOutput HTTP/1.1 |
Content-Type | application/json |
Accept | application/json |
Accept-Encoding | gzip, deflate |
Pragma | no-cache |
Body |
|
Request | POST /api/jobs/request/WebShopNoOutput HTTP/1.1 |
Content-Type | application/json |
Accept | application/json |
Accept-Encoding | gzip, deflate |
Pragma | no-cache |
Body |
|
The contents of the JSON data is saved in a parameter as Map with key-value pairs. The name of the parameter has to be named in the model variables under Commands > SetParameterValueFromJsonCommand > Name of the parameter which stores the JSON structure and the parameter by the same has to be installed in the corresponding component.
Note:
All URL parameters specified are ignored in case of a POST call.
The Job object with status information at the moment of generation is given as the response. Further progress information has to be polled. Alternatively, calling of an external Webservice by the Job Server when the Job has been completed under specification of a callback URL is possible. For more information see Call back by the Job Server.
Body |
|