Package org.jboss.bpm.console.client.model

Examples of org.jboss.bpm.console.client.model.ProcessDefinitionRef


                            .with(LayoutParts.TOOLSET, "ToolSet_Processes")
                            .noErrorHandling()
                            .sendNowWith(ErraiBus.get());

                    // load process data
                    ProcessDefinitionRef ref = getActiveDefinition();
                    MessageBuilder.createMessage()
                            .toSubject("process.execution.history")
                            .signalling()
                            .with("processName", ref.getName()+"-"+ref.getVersion())// hacky
                            .with("processDefinitionId", ref.getId())
                            .noErrorHandling().sendNowWith(ErraiBus.get());
                }
            }
        });
View Full Code Here


            }
        }
    }

    private void identifyMostRecentVersion() {
        ProcessDefinitionRef mostRecent = null;

        for(ProcessDefinitionRef groupMember :
                processGroups.getProcessesForGroup(selectedGroup))
        {
            if(null==mostRecent || groupMember.getVersion()>mostRecent.getVersion())
                mostRecent = groupMember;
        }

        setActiveDefinition(mostRecent);
    }
View Full Code Here

        }
    }

    private void updateTitle() {

        final ProcessDefinitionRef ref = getActiveDefinition();

        String name = selectedGroup; // riftsaw name juggling
        String subtitle = "";
        if(selectedGroup.indexOf("}")!=-1)
        {

            String[] qname = selectedGroup.split("}");
            name = qname[1];
            subtitle = qname[0].substring(1, qname[0].length());
        }

        String nameAndSubtitle = name + "<br/><div style='color:#C8C8C8;font-size:12px;text-align:left;'>" + subtitle + "</div>";
        StringBuffer sb = new StringBuffer("<p/><div style='font-size:12px;text-align:left;'>Version: ");

        String state = ref.isSuspended() ? "suspended" : "active";
        sb.append(ref.getVersion()).append(" (").append(state).append(")");
        sb.append("</div>");

        title.setHTML(nameAndSubtitle+sb.toString());
    }
View Full Code Here

        popup.pack();
        popup.show();
    }

    private ProcessDefinitionRef getSelectedVersion(ListBox listBox) {
        ProcessDefinitionRef selection = null;
        for(ProcessDefinitionRef ref : processGroups.getProcessesForGroup(selectedGroup))
        {
            if(ref.getVersion() == Long.valueOf(listBox.getItemText(listBox.getSelectedIndex())))
            {
                selection = ref;
View Full Code Here

          public void onRowSelection(RowSelectionEvent rowSelectionEvent)
          {
            int index = listBox.getSelectedIndex();
            if(index!=-1)
            {
              ProcessDefinitionRef item = listBox.getItem(index);


              // update details
              /*controller.handleEvent(
                  new Event(UpdateProcessDetailAction.ID, item)
View Full Code Here

    }
  }

  public ProcessDefinitionRef getSelection()
  {
    ProcessDefinitionRef selection = null;
    if(isInitialized() && listBox.getSelectedIndex()!=-1)
      selection = listBox.getItem( listBox.getSelectedIndex());
    return selection;
  }
View Full Code Here

      public void callback(final Message message)
      {
        // Currently selected process definition
        DefinitionHistoryListView definitionList = (DefinitionHistoryListView)
            controller.getView(DefinitionHistoryListView.ID);
        ProcessDefinitionRef selectedDefinition = definitionList.getSelection();
        assert selectedDefinition!=null;

        HistoryInstanceListView view = (HistoryInstanceListView)
            controller.getView(HistoryInstanceListView.ID);
View Full Code Here

  public void execute(Controller controller, Object o)
  {
    this.controller = controller;

    ProcessDefinitionRef def = (ProcessDefinitionRef)o;

    MessageBuilder.createMessage()
        .toSubject("JBPM_HISTORY_SERVICE")
        .command("GET_FINISHED_PROCESS_INSTANCES")
        .with(MessageParts.ReplyTo, ID)
        .with("PROCESS_DEFINITION_ID", def.getId())
        .noErrorHandling()
        .sendNowWith(bus);
  }
View Full Code Here

          public void onRowSelection(RowSelectionEvent rowSelectionEvent)
          {
            int index = listBox.getSelectedIndex();
            if(index!=-1)
            {
              ProcessDefinitionRef item = listBox.getItem(index);
               
              // load history instances
              controller.handleEvent(
                  new Event(
                      UpdateHistoryDefinitionAction.ID,
View Full Code Here

    }
  }

  public ProcessDefinitionRef getSelection()
  {
    ProcessDefinitionRef selection = null;
    if(isInitialized() && listBox.getSelectedIndex()!=-1)
      selection = listBox.getItem( listBox.getSelectedIndex());
    return selection;
  }
View Full Code Here

TOP

Related Classes of org.jboss.bpm.console.client.model.ProcessDefinitionRef

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.