Project-OMOTES / issues-and-project

0 stars 0 forks source link

Integration of simulator workflow in MapEditor #30

Open lfse-slafleur opened 8 months ago

lfse-slafleur commented 8 months ago

Blocked by #27

ewoudwerkman commented 8 months ago

What does this task contain and who is responsible?

ewoudwerkman commented 8 months ago

please add example REST call to the dispatcher

lfse-slafleur commented 8 months ago

@TNO-SlaFleur @MarkTNO ^ see previous message.

ewoudwerkman commented 8 months ago

starting from backend time should be in UTC

edwinmatthijssen commented 8 months ago

Form with attributes can be configured as part of the external service configuration

image

lfse-slafleur commented 8 months ago

TODO's:

lfse-slafleur commented 7 months ago
lfse-slafleur commented 7 months ago

@edwinmatthijssen @MarkTNO Here is an example REST call that omotes-rest supports:

{
  "job_name": "simulator-test-job",
  "workflow_type": "Conceptual Design - Simulation",
  "user_name": "no-user",
  "input_esdl": "PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0nVVRGLTgnPz4KPGVzZGw6RW5lcmd5U3lzdGVtIHhtbG5zOnhzaT0iaHR0cDovL3d3dy53My5vcmcvMjAwMS9YTUxTY2hlbWEtaW5zdGFuY2UiIHhtbG5zOmVzZGw9Imh0dHA6Ly93d3cudG5vLm5sL2VzZGwiIG5hbWU9IlVudGl0bGVkIEVuZXJneVN5c3RlbSB3aXRoIHJldHVybiBuZXR3b3JrIiBpZD0iZmRiYmY1ZWUtNmU4Ni00YzgyLTk5MjYtNGI1OWRlNDgyMzc4X3dpdGhfcmV0dXJuX25ldHdvcmsiIGRlc2NyaXB0aW9uPSIiIGVzZGxWZXJzaW9uPSJ2MjIwNyIgdmVyc2lvbj0iMSI+CiAgPGVuZXJneVN5c3RlbUluZm9ybWF0aW9uIHhzaTp0eXBlPSJlc2RsOkVuZXJneVN5c3RlbUluZm9ybWF0aW9uIiBpZD0iYzYxNWYxN2UtYzA3Ny00OGM0LThhNzgtNmFlMDVmOGE5MDhmIj4KICAgIDxjYXJyaWVycyB4c2k6dHlwZT0iZXNkbDpDYXJyaWVycyIgaWQ9ImMyNz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qb3J0IiBjb25uZWN0ZWRUbz0iZTg5MGY2NWYtODBlNy00NmZhLThjNTItNTM4NTMyNGJmNjg2IiBpZD0iNDIyY2I5MjEtMjNkMi00NDEwLTkwNzItYWFhNTc5NmEwNjIwIiBjYXJyaWVyPSIwYmQ5Y2IwOC0yZjY5LTRlOTctOGFjOC1iZDg3YjA3ZTQ2NmFfcmV0IiBuYW1lPSJJbl9yZXQiLz4KICAgICAgICA8cG9ydCB4c2k6dHlwZT0iZXNkbDpPdXRQb3J0IiBpZD0iOTM1ZmI3MzMtOWY3Ni00YThkLTg4OTktMWFkODY4OWE0YjEyIiBjb25uZWN0ZWRUbz0iOWMyNThiOWQtMzE0OS00NzIwLTg5MzEtZjRiZWYxMDgwZWMxIiBjYXJyaWVyPSIwYmQ5Y2IwOC0yZjY5LTRlOTctOGFjOC1iZDg3YjA3ZTQ2NmFfcmV0IiBuYW1lPSJPdXRfcmV0Ii8+CiAgICAgIDwvYXNzZXQ+CiAgICA8L2FyZWE+CiAgPC9pbnN0YW5jZT4KPC9lc2RsOkVuZXJneVN5c3RlbT4=",
  "project_name": "no-project",
  "input_params_dict": {
    "timestep_s": 3600.0,
    "start_time_unix_s": 1546383600.0,
    "end_time_unix_s": 1546394400.0
  },
  "timeout_after_s": 3600
}