Package pl.net.bluesoft.rnd.processtool

Examples of pl.net.bluesoft.rnd.processtool.ProcessToolContext$Util


  public void internalRefreshData()
  {
    taskList.removeAllComponents();

    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
    final ProcessToolBpmSession bpmSession = activityMainPane.getBpmSession();
    UserData user = bpmSession.getUser(ctx);

    buildMainTasksViews(ctx,bpmSession,user);
View Full Code Here


            activityMainPane.displayOtherUserQueue(q,user);
          }
        }
        else
        {
          ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
          BpmTask task = bpmSession.assignTaskFromQueue(q,ctx);
          if(task != null)
          {
            getWindow().executeJavaScript("Liferay.trigger('processtool.bpm.assignProcess', '" + task.getProcessInstance().getInternalId() + "');");
            getWindow().executeJavaScript("vaadin.forceSync();");
View Full Code Here

    }

    @Override
    protected ProcessToolBpmSession getBpmSession() {
        if (bpmSession == null) {
            ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
            bpmSession = activityMainPane.getBpmSession().createSession(userData, userData.getRoleNames(), ctx);
        }
        return bpmSession;
    }
View Full Code Here

    }

    @Override
    protected ProcessToolBpmSession getBpmSession() {
        if (bpmSession == null) {
            ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
      userData = LiferayBridge.getLiferayUser(userData.getLogin(), userData.getCompanyId());
            bpmSession = activityMainPane.getBpmSession().createSession(userData, userData.getRoleNames(), ctx);
        }
        return bpmSession;
    }
View Full Code Here

        this.minDate = minDate;
    }

    @Override
  public List<BpmTask> getBpmTasks() {
    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
        return getBpmSession().findRecentTasks(minDate, offset, limit, ctx);
  }
View Full Code Here

  }

  @Override
  protected ProcessInstanceFilter getDefaultFilter() {
    ProcessInstanceFilter tfi = new ProcessInstanceFilter();
    ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
    tfi.addOwner(getBpmSession().getUser(ctx));
    tfi.setUpdatedAfter(minDate.getTime());
    tfi.addQueueType(QueueType.ASSIGNED_TO_CURRENT_USER);
    return tfi;
  }
View Full Code Here

        setTitle(queue.getDescription());
    }

    @Override
    protected Component getTaskItem(final TaskTableItem tti) {
        ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
        ProcessInstance pi = tti.getTask().getProcessInstance();
        TaskItemProviderBase tip = getTaskItemProvider(ctx, pi);
        TaskItemProviderParams params = getTaskItemProviderParams(ctx, tti);
        params.setQueue(queue);
        return tip.getQueuePane(params);
View Full Code Here

    }

    @Override
    protected ProcessInstanceFilter getDefaultFilter() {
        ProcessInstanceFilter processFilter = new ProcessInstanceFilter();
        ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
        processFilter.setName(getMessage("activity.assigned.tasks"));
        processFilter.addOwner(getBpmSession().getUser(ctx));
        processFilter.setFilterOwner(getBpmSession().getUser(ctx));
        processFilter.addQueueType(QueueType.ASSIGNED_TO_CURRENT_USER);
        return processFilter;
View Full Code Here

        return processFilter;
    }

    @Override
    protected Component getTaskItem(final TaskTableItem tti) {
        ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();
        ProcessInstance pi = tti.getTask().getProcessInstance();
        TaskItemProviderBase tip = getTaskItemProvider(ctx, pi);
        TaskItemProviderParams params = getTaskItemProviderParams(ctx, tti);
        return tip.getTaskPane(params);
    }
View Full Code Here

    }

    @Override
    protected void sortTaskItems(List<TaskTableItem> taskItems) {
        final Date now = new Date();
        ProcessToolContext ctx = ProcessToolContext.Util.getThreadProcessToolContext();

        List<TaskTableItem> outdatedItems = new ArrayList<TaskTableItem>();
        List<TaskTableItem> recentItems = new ArrayList<TaskTableItem>();
        List<TaskTableItem> finishedItems = new ArrayList<TaskTableItem>();
        for (TaskTableItem tti : taskItems) {
View Full Code Here

TOP

Related Classes of pl.net.bluesoft.rnd.processtool.ProcessToolContext$Util

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.