Contents
Table of Contents |
---|
...
Starting with version 2.5.5, SIL Engine™ exposes a REST service to facilitate arbitrary execution of SIL™ scripts. These services are available via HTTP POST at <your_base_url>/rest/keplerrominfo/refapp/latest/async-script and <your_base_url>/rest/keplerrominfo/refapp/latest/async. The service responses are all JSON formatted (see Beans below).
...
Parameter | Type | Required | Description |
---|---|---|---|
dirPath | string | yes | The path of the directory to scan. Can be absolute or relative to the silprograms folder. If absolute, it must still point to a location under silprograms. |
regex | string | yes | The regular expression to match the filenames against |
Returns a 15482848 ScriptFileListResponse.
|
|
---|
...
Schedules a check script task to be run asynchronously for the given script and returns a 15482848 ScriptScheduledResponse.
Parameter | Type | Required | Description |
---|---|---|---|
source | yes | The script to check |
|
|
---|
...
Schedules a run script task to be run asynchronously for the given script and returns a 15482848 ScriptScheduledResponse. To run in the context of an issue, pass a property with the key "sil.issue.key" and value with the issue key.
Parameter | Type | Required | Description | |||||
---|---|---|---|---|---|---|---|---|
source | yes | The script to run | ||||||
properties | array of objects containing "key" and "value" | no |
| |||||
args | array of strings | no | will be passed into the script as the "argv" variable |
...
Parameter | Type | Required | Description | |||||
---|---|---|---|---|---|---|---|---|
source | 15482848ScriptSource | yes | The script to run | |||||
properties | array of objects containing "key" and "value" | no |
| |||||
args | array of strings | no | will be passed into the script as the "argv" variable |
...
Checks if the task identified by the provided id is still running or has finished and returns an 15482848 AsyncResultResponse. If the task has finished execution, the result is removed from memory and returned in the response. Subsequent calls to this method will not return the result. If the task has not finished execution, you may repeat the call to getResult until the response contains "running": false.
...