Package pl.net.bluesoft.rnd.processtool.model

Examples of pl.net.bluesoft.rnd.processtool.model.UserProcessQueue


    /* Get all queue elements for given process id and delete them */
    Long processId = processInstance.getId();
    String creatorLogin = bpmTask.getCreator();
   
    /* Create new queue element that is stored as finished process */
    UserProcessQueue finishedProcess = new UserProcessQueue();
    finishedProcess.setLogin(creatorLogin);
    finishedProcess.setProcessId(processId);
    finishedProcess.setQueueType(QueueType.OWN_FINISHED);
    finishedProcess.setTaskId(Long.parseLong(bpmTask.getInternalTaskId()));
    queueDao.saveOrUpdate(finishedProcess);
  }
View Full Code Here


  }
 
  private void updateUserProcessQueue(String taskIdString, Long processId, String assigneLogin, QueueType type)
  {
    Long taskId = Long.parseLong(taskIdString);
    UserProcessQueue userProcessQueue = queueDao.getUserProcessQueueByTaskId(taskId, assigneLogin);
   
    /* The queue element for given process exists with type "mine assiegned to me". Change its type and save */
    if(userProcessQueue != null)
    {
      userProcessQueue.setQueueType(type);
    }
    /* Otherwise, create new process queue with correct type */
    else
    {
      userProcessQueue = new UserProcessQueue();
      userProcessQueue.setLogin(assigneLogin);
      userProcessQueue.setProcessId(processId);
      userProcessQueue.setTaskId(taskId);
      userProcessQueue.setQueueType(type);
    }
   
    queueDao.saveOrUpdate(userProcessQueue);
  }
View Full Code Here

    /* Get all queue elements for given process id and delete them */
    Long processId = processInstance.getId();
    String creatorLogin = bpmTask.getCreator();
   
    /* Create new queue element that is stored as finished process */
    UserProcessQueue finishedProcess = new UserProcessQueue();
    finishedProcess.setLogin(creatorLogin);
    finishedProcess.setProcessId(processId);
    finishedProcess.setQueueType(QueueType.OWN_FINISHED);
    finishedProcess.setTaskId(Long.parseLong(bpmTask.getInternalTaskId()));
    queueDao.saveOrUpdate(finishedProcess);
  }
View Full Code Here

  }
 
  private void updateUserProcessQueue(String taskIdString, Long processId, String assigneLogin, QueueType type)
  {
    Long taskId = Long.parseLong(taskIdString);
    UserProcessQueue userProcessQueue = queueDao.getUserProcessQueueByTaskId(taskId, assigneLogin);
   
    /* The queue element for given process exists with type "mine assiegned to me". Change its type and save */
    if(userProcessQueue != null)
    {
      userProcessQueue.setQueueType(type);
    }
    /* Otherwise, create new process queue with correct type */
    else
    {
      userProcessQueue = new UserProcessQueue();
      userProcessQueue.setLogin(assigneLogin);
      userProcessQueue.setProcessId(processId);
      userProcessQueue.setTaskId(taskId);
      userProcessQueue.setQueueType(type);
    }
   
    queueDao.saveOrUpdate(userProcessQueue);
  }
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.model.UserProcessQueue

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.