Attributes
Attribute |
type |
values |
default |
mandate |
Comment |
startTime |
date |
|
|
|
|
progress |
long |
|
|
|
|
instanceId |
string |
|
|
|
|
instanceDescription |
string |
|
|
|
|
/task /create
/task /delete
/task /search
/task /get
/task/import
Examples:
Method:/task/import
Parameters:
{
"attrs"
{
"data":"xml data"
}
}
/task/resetCounter
Reset failed/executed/succeeded/ lastExecuted
Examples:
Method:/task/resetCounter
Parameters:
{
'id':tid1
}
/task /execute
Examples:
Method:/task/execute
Parameters:
{
'id':tid1,
'parameters':
{
'param1':'xxx'
'param2':'xxx'
},
"attrs":
{
'instanceDescription':'xxxx'
}
}
Response:
{
"error":0
}
/taskInstance /search
Examples:
Method:/task/search
Parameters:
{
'match':
[
['id','=','xxx']
],
'return':['progress','name','id','instanceId','InstanceName']
}
Response:
{
"error":0,
"result":
{
total:2,
rows:
[
{"progress",254,"name":"deployTokens","id":"xxx",...},
{"progress",111,"name":"importTokens","id":"yyy",...}
]
}
}
/taskInstance /stop
Method:/taskInstance /stop
Parameters:
{
'instanceId':id
}
/taskInstance /pause
Method:/taskInstance /pause
Parameters:
{
'instanceId':id,
}
/taskInstance /resume
Method:/taskInstance /resume
Parameters:
{
'instanceId':id,
}