Skip to content

Instantly share code, notes, and snippets.

@wesleyvicthor
Created November 24, 2011 19:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wesleyvicthor/1392133 to your computer and use it in GitHub Desktop.
Save wesleyvicthor/1392133 to your computer and use it in GitHub Desktop.
twig array
{% if cases_list.ProcessInstance is defined %}
{% for case in cases_list.ProcessInstance %}
{% for activity in case.activities.children() %}
<tr>
{% for variable in case.clientVariables.children() %}
{% for data in variable.xpath('string[2]') %}
<td>{{ data }}</td>
{% endfor %}
{% endfor %}
<td><a href="{{ cloud_link_address }}{{ activity.uuid.value }}" target="_blank">{{ activity.name }}</a></td>
<td>#</td>
</tr>
{% endfor %}
{% endfor %}
{% endif %}
@wesleyvicthor
Copy link
Author

ao inves de ter uma iteração com o retorno do xpath(), não tem como pegar o current() do array retornado ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment