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

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


    p.addComponent(mainLayout);
    return p;
  }

  protected Component createTaskIcon(TaskItemProviderParams params) {
    BpmTask task = params.getTask();
    final ProcessDefinitionConfig cfg = task.getProcessInstance().getDefinition();
    String path = cfg.getProcessLogo() != null ? cfg.getBpmDefinitionKey() + "_" + cfg.getId() + "_logo.png" : "/img/aperte-logo.png";
    Resource res = params.getResource(path);
    if (res == null) {
      if (cfg.getProcessLogo() != null) {
        res = params.getStreamResource(path, cfg.getProcessLogo());
View Full Code Here


      @Override
      public Component render(Map<String,?> viewData)
      {
        ProcessToolBpmSession bpmSession = (ProcessToolBpmSession)viewData.get("bpmSession");
        BpmTask task = (BpmTask)viewData.get("task");
        pane.attachProcessDataPane(task,bpmSession);
        ActivityMainPane.this.pdvc = pane;
        return pane;
      }
    });
View Full Code Here

    displayProcessDataInPane(task,bpmSession,forward);
  }

  private void confirmTaskClosing(final EventHandler eventHandler)
  {
    BpmTask task;
    final ProcessToolContext processToolContextFromThread = ProcessToolContext.Util.getThreadProcessToolContext();
    if(viewController.getCurrentViewId() != null && viewController.getCurrentViewId().equals(ProcessDataViewComponent.class.getName())
        && (task = (BpmTask)viewController.getCurrentViewData().get("task")) != null
        && getBpmSession().isProcessRunning(task.getProcessInstance().getInternalId(),processToolContextFromThread))
    {
      final ProcessDataPane pdp = pdvc != null && pdvc.getProcessDataPane() != null ? pdvc.getProcessDataPane() : null;

      VaadinUtility.displayConfirmationWindow(
          application,getI18NSource(),
View Full Code Here

      ((GenericVaadinPortlet2BpmApplication)application).setShowExitWarning(show);
  }

  public void displayTaskById(String taskId)
  {
    BpmTask task = bpmSession.getTaskData(taskId,ProcessToolContext.Util.getThreadProcessToolContext());
    if(task != null)
    {
      displayProcessData(task);
    }
    else
View Full Code Here

          }
        }
        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();");
            activityMainPane.displayProcessData(task,user == null ? null : bpmSession);
          }
          else
          {
View Full Code Here

    @Override
    protected void onClick(final TaskItemProviderParams params) {
        withErrorHandling(getApplication(), new Runnable() {
            public void run() {
                BpmTask task = getBpmSession().assignTaskFromQueue(queue, params.getTask(),
                        ProcessToolContext.Util.getThreadProcessToolContext());
                if (task != null) {
                    getApplication().getMainWindow().showNotification(getMessage("process-tool.task.assigned"),
                            Window.Notification.TYPE_HUMANIZED_MESSAGE);
                    displayProcessData(task);
View Full Code Here

        List<TaskTableItem> outdatedItems = new ArrayList<TaskTableItem>();
        List<TaskTableItem> recentItems = new ArrayList<TaskTableItem>();
        List<TaskTableItem> finishedItems = new ArrayList<TaskTableItem>();
        for (TaskTableItem tti : taskItems) {
            BpmTask task = tti.getTask();
            if (getBpmSession().isProcessRunning(task.getProcessInstance().getInternalId(), ctx)) {
                if (isOutdated(now, getDeadlineDate(task))) {
                    outdatedItems.add(tti);
                }
                else {
                    recentItems.add(tti);
View Full Code Here

        
         HistoryTaskInstanceImpl taskInstance = (HistoryTaskInstanceImpl)resultRow[0];
         ProcessInstance processInstance = (ProcessInstance)resultRow[1];
        
         /* Map process and jbpm task to system's bpm task */
         BpmTask task = taskFactory.create(taskInstance, processInstance);
        
         result.add(task);
       }
      
       return result;
View Full Code Here

TOP

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

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.