Improve Ewoksweb usage
Ewoksweb does not have a sensible way of naming/grouping BES tasks (they are all called "run")
BES tasks are also recognized as "method" instead of "ppfmethod"
{
"task_type": "method",
"task_identifier": "bes.actors.burnStrategyNoReferenceImages.run",
"required_input_names": [
"beamline",
"workflowParameters",
"directory",
"characterisationOscillationRange",
"characterisationExposureTime",
"characterisationTransmission"
],
"optional_input_names": [
"resolution",
"automatic_mode",
"collection_software",
"token"
],
"output_names": [
"return_value"
],
"category": "bes",
"description": null,
"icon": "default.png",
"label": "run"
}
To discover all tasks in the current python environment
- ewoksserver: https://gitlab.esrf.fr/workflow/ewoks/ewoksserver/-/blob/main/src/ewoksserver/app/routes/tasks/discovery.py#L52
- ewoksjob: https://gitlab.esrf.fr/workflow/ewoks/ewoksjob/-/blob/main/src/ewoksjob/apps/ewoks.py#L79
- ewokscore: https://gitlab.esrf.fr/workflow/ewoks/ewokscore/-/blob/main/src/ewokscore/task_discovery.py#L150
As an aside: not sure what the task_type
is when discovering like this