"' (" + result.getClass().getName() + ")");
}
}
public static void restoreVariables(WorkItemImpl workItem, Task task, JpdlNodeInstance nodeInstance) {
TaskController taskController = task.getTaskController();
if (taskController != null) {
Delegation taskControllerDelegation = taskController.getTaskControllerDelegation();
if (taskControllerDelegation != null) {
// TODO: delegation (API mismatch!)
} else {
List<VariableAccess> variableAccesses = taskController.getVariableAccesses();
if (variableAccesses != null) {
String missingTaskVariables = null;
for (VariableAccess variableAccess: variableAccesses) {
String mappedName = variableAccess.getMappedName();
Object value = workItem.getParameter(mappedName);