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

Examples of pl.net.bluesoft.rnd.processtool.model.nonpersistent.MutableBpmTask


    @Override
    public BpmTask getPastEndTask(ProcessInstanceLog log, ProcessToolContext ctx) {
        final ProcessInstance pi = log.getProcessInstance();
       String endTaskName = findEndActivityName(pi, ctx);
       if (Strings.hasText(endTaskName)) {
           MutableBpmTask t = new MutableBpmTask();
           t.setProcessInstance(pi);
           t.setAssignee(user.getLogin());
           t.setOwner(user);
           t.setTaskName(endTaskName);
           t.setFinished(true);
           return t;
       }
       return null;
    }
View Full Code Here


    this.ctx = ctx;
  }
 
     public BpmTask create(TaskImpl task, ProcessInstance pi)
     {
       MutableBpmTask t = new MutableBpmTask();
       t.setProcessInstance(pi);
       t.setAssignee(task.getAssignee());
       UserData ud = ctx.getUserDataDAO().loadUserByLogin(task.getAssignee());
       if (ud == null) {
         ud = new UserData();
         ud.setLogin(task.getAssignee());
       }
       t.setOwner(ud);
       t.setTaskName(task.getActivityName());
       t.setInternalTaskId(task.getId());
       t.setExecutionId(task.getExecutionId());
       t.setCreateDate(task.getCreateTime());
       t.setFinishDate(task.getDuedate());
       t.setFinished(false);
      
       return t;
     }
View Full Code Here

       return t;
     }
    
     public BpmTask create(HistoryTaskInstanceImpl task, ProcessInstance pi)
     {
       MutableBpmTask t = new MutableBpmTask();
       t.setProcessInstance(pi);
       t.setAssignee(task.getHistoryTask().getAssignee());
       UserData ud = ctx.getUserDataDAO().loadUserByLogin(task.getHistoryTask().getAssignee());
       if (ud == null) {
         ud = new UserData();
         ud.setLogin(task.getHistoryTask().getAssignee());
       }
       t.setOwner(ud);
       t.setTaskName(task.getActivityName());
       t.setInternalTaskId(task.getHistoryTask().getId());
       t.setExecutionId(task.getExecutionId());
       t.setCreateDate(task.getStartTime());
       t.setFinishDate(task.getEndTime());
       t.setFinished(false);
       return t;
     }
View Full Code Here

    }
    else {
      Collection<BpmTask> processTaskInQueues = getProcessTaskInQueues(ctx, newProcessInstance);

      for (BpmTask task : processTaskInQueues) {
        ctx.getUserProcessQueueManager().onQueueAssigne(new MutableBpmTask(task));
      }
    }

        for (IEvent event : events) {
            broadcastEvent(ctx, event);
View Full Code Here

    public Component render(WidgetsDefinitionElement element, Map<String, Property> form) {

        formProperties = form;
        compositionRoot = new VerticalLayout();

        MutableBpmTask task = new MutableBpmTask();
        task.setProcessInstance(new ProcessInstance());
        loadData(task);
        widgetsDefinitionElement = element;
        Component rendered = null;
        try {
            rendered = render();
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.model.nonpersistent.MutableBpmTask

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.