Hello Botond,
I'm not completely sure this suits your needs, but there's a foreach construct in JBPM JDPL language that was introduced in the latest, 4.4 version:
http://docs.jboss.com/jbpm/v4/devguide/html_single/#foreach
Hope this helps.
Regards,
Peter