code: private void setLastWorkflowForUser(String workflowId) throws CmsException {
  
          CmsUser user = getCmsObject().getRequestContext().getCurrentUser();
          user.setAdditionalInfo(PARAM_WORKFLOW_ID, workflowId);
          getCmsObject().writeUser(user);
      }
docs: Writes the id of the last used workflow to the current user.<p>
  
  @param workflowId the workflow id
  
  @throws CmsException if something goes wrong writing the user object