--
You received this message because you are subscribed to the Google Groups "obiba-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to obiba-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/LO4P265MB3792F6A9055ADB2B82D855A3B9A39%40LO4P265MB3792.GBRP265.PROD.OUTLOOK.COM.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/LO4P265MB37924741BCEEDE59D46296F5B9A39%40LO4P265MB3792.GBRP265.PROD.OUTLOOK.COM.
Hi,
Sorry for the late reply.
Since Opal is a restful application, you could call the _analyse
command to automate the process.
Here is an example input file:
{
"project": "FNAC",
"analyses": [
{
"name": "cli-test1",
"plugin": "opal-analysis-validate",
"table": "FNAC",
"template": "validator",
"variables": "VYOTARO,LANTIO",
"params": "{\"expressions\":[{\"name\":\"x\",\"rule\":\"VYOTARO > 50 && LANTIO > 40\"}]}"
}
]
}
Where, using curl
you do: curl -X POST -H "Accept: application/json" -H "Content-Type: application/json" -H "Authorization: X-Opal-Auth
echo -n ‘:‘|base64" http://localhost:8080/ws/project/<PROJECT_NAME>/commands/_analyse -d @analysis.json
Note that params
(a string representation of a json object, keep the same schema as the example: expressions is an array of object with name and rule as proeprties), variables
, table
, name
and project
are the properties that you should be modifying.
Hope this is clear enough.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/LO4P265MB379290A3074BC850A9C6E530B9A39%40LO4P265MB3792.GBRP265.PROD.OUTLOOK.COM.
To view this discussion on the web visit https://groups.google.com/d/msgid/obiba-users/CAOGeEEJpSsXgwQZEcjVj2Uz1LFYn-4F0HRbcAo%2BTawP-o%2BgtqA%40mail.gmail.com.