I added ${runtimeServer.getVariables(execution.getId())} to the documentation section of a user task and received the following exception:
PM org.activiti.engine.impl.interceptor.CommandContext close
SEVERE: Error while closing command context
org.activiti.engin.ActivitiException: execution 14848 doesn't exist.
Additional Information:
1. The user-task is the first task after the process' start event
2. If I add the script to the documentation section of a later user task, it returns the process variables.