aboutsummaryrefslogtreecommitdiffstats
path: root/apps/templates/cms_opt_request.jsont
blob: 006562b87caac7b2a190cfe14b9afd70ca5bd777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
  "transaction_id": "{{ transaction_id }}",
  "request_id": "{{ request_id }}",
  "start_date" : "{{ start_time }}",
  "end_date" : "{{ end_time }}",
  "change_elements" : {{ json.dumps(change_elements) }},
  "constraints" : [
    {
      "type" : "general_concurrency_limit",
      "parameters": [{{ concurrency_limit }}]
    },

    {
      "type" : "allowed_forbidden_periods",
      "parameters" : {{ json.dumps(allowed_periods) }}
    }

    {% if spatial_conflicts is defined and spatial_conflicts|length > 0 %}
    ,
    {
      "type" : "spatial_conflict",
      "parameters": {{ json.dumps(spatial_conflicts) }}
    }
    {% endif %}


    {% if critical_periods is defined and spatial_conflicts|length > 0 %}
    ,
    {
      "type" : "critical_periods",
      "parameters": {{ json.dumps(critical_periods) }}
    }
    {% endif %}
  ]
}