TokenContext context = workflowTask.getTokenContext();
context = workflowTask.getTokenContext();
NodeSocket workflowEntrySocket = context.getCurrentSocket();
WorkflowNode workflowNode = (WorkflowNode) workflowEntrySocket.getNode();
NodeSocket nextSocket = resolveSocketRef(socketName, workflowEntrySocket, context, true);
context.setCurrentSocket(nextSocket);
context.setLifecycleRequest(LifecycleRequest.RESUME);
tokenContextService.saveContext(context);
if (workflowNode != null)
{
if (workflowNode.isAssignToCurrentUser())
{
workflowTask.setRoleId(null);
workflowTask.setUserId(currentUserId);
}
}