我正在使用 Bluemix Workload Scheduler REST API 来创建带有调度触发器的进程,该触发器具有 oneTimeProperty 和 startDate。
此外,我发送的 json 也有一个 restfulStep。
我遇到的问题是,无论我如何为 restfulStep 提供“queryParameters”和“headers”,在成功创建流程后,它们都不会在流程中被接受/配置。
这是我正在使用的json:
{
"name": "my process name",
"processlibraryid": 1234,
"processstatus": true,
"triggers": [
{
"name": "Scheduled Trigger",
"triggerType": "OnceTrigger",
"oneTimeProperty": {
"startDate": "TIMEVALUE"
}
}
],
"steps": [
{
"restfulStep": {
"agent": "AGENTNAME}",
"action": {
"uri": "MYCUSTOMURL",
"contentType": "application/json",
"method": "POST",
"verifyHostname": true,
"queryParameters": [
["param1", "value1"],
["param2", "value2"]
],
"headers": [
["param3", "param4"]
],
"numberOfRetries": 3,
"retryIntervalSeconds": 30
},
"authdata": {
"username": "USERNAME",
"password": "PASSWORD"
},
"input": {
"input": "",
"isFile": false
}
}
}
]
}