{% load custom_filter %} Process Report

Process Report

{% for process in processes %}

Process: {{ process.name }}

ID: {{ process.pk }}

Created by: {{ process.created_by|get_user_by_id|default:"-" }}

Created at: {{ process.datetime }}

Description: {{ process.description|default:"Sem descrição" }}

Process steps:

{% for step in process.steps.all %} {% empty %}

No steps registered.

{% endfor %}
Step Description Ordem Registrations
{{ step.pk }} | {{ step.name }} {{ step.description|default:"-" }} {{ step.order }}
    {% with registrations=step.registrations.all %} {% for i in step.total_registrations|range %} {% if i < step.registrations.all|length %} {% with registration=registrations|get_item_at_index:i %}
  • Status: {% if registration.success %} Success {% else %} Failure {% endif %}
    Name: {{ registration.name|default:"Sem mensagem" }} {% if registration.description %}
    Description: {{ registration.description }} {% endif %}
  • {% endwith %} {% else %}
  • Status: No registration
  • {% endif %} {% endfor %} {% endwith %}
{% empty %}

No processes registered.

{% endfor %}