Hi Martin,
Thanks for your reply. You mean the exception in the scriptTask or other activity ? Unfortunately not, since scripts are written by external partners. In addition, we may have exception elsewhere, for instance if a conditionExpression contains an unknown variable, a org.activiti.engine.impl.javax.el.PropertyNotFoundException is raised and the whole script fails.
In such a case, I would like to be able to retrieve a few process variables and the list of executed activities so that I am able, for instance, to find out how far the Activiti script went and rollback external non-transactional resources.
Thanks,
Thomas