{% for processus in allprocessuses if processus.typeprocessus.code is defined and processus.typeprocessus.code == "MAN" %}
{% if processus.typeprocessus.code is defined %}
{{ processus.metier.designation| default("") }}

{{ processus.designation | default("N/C") }}

{% if processus.finalite %} {{ processus.finalite | default("") }}
{% endif %} {% if processus.risques|length > 0 %}{{ processus.risques|length | default("") }} risque{% if processus.risques|length > 1 %}s{% endif %}{% endif %} {% if processus.actions|length > 0 %}{{ processus.actions|length | default("") }} action{% if processus.actions|length > 1 %}s{% endif %}{% endif %}

{% for activite in allactivites if activite.processus.id is defined and activite.processus.id == processus.id %} {% endfor %}
{% endif %}
{% endfor %}
{% for processus in allprocessuses if processus.typeprocessus.code is defined and processus.typeprocessus.code == "REA" %}
{% if processus.typeprocessus.code is defined %}
{{ processus.metier.designation| default("") }}

{{ processus.designation | default("N/C") }}

{% if processus.finalite %} {{ processus.finalite | default("") }}
{% endif %} {% if processus.risques|length > 0 %}{{ processus.risques|length | default("") }} risque{% if processus.risques|length > 1 %}s{% endif %}{% endif %} {% if processus.actions|length > 0 %}{{ processus.actions|length | default("") }} action{% if processus.actions|length > 1 %}s{% endif %}{% endif %}

{% for activite in allactivites if activite.processus.id is defined and activite.processus.id == processus.id %} {% endfor %}
{% endif %}
{% endfor %}
{% for processus in allprocessuses if processus.typeprocessus.code is defined and processus.typeprocessus.code == "SUP" %}
{% if processus.typeprocessus.code is defined %}
{{ processus.metier.designation| default("") }}

{{ processus.designation | default("N/C") }}

{% if processus.finalite %} {{ processus.finalite | default("") }}
{% endif %} {% if processus.risques|length > 0 %}{{ processus.risques|length | default("") }} risque{% if processus.risques|length > 1 %}s{% endif %}{% endif %} {% if processus.actions|length > 0 %}{{ processus.actions|length | default("") }} action{% if processus.actions|length > 1 %}s{% endif %}{% endif %}

{% for activite in allactivites if activite.processus.id is defined and activite.processus.id == processus.id %} {% endfor %}
{% endif %}
{% endfor %}