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

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


      JobQuery timerQuery = mgmtService.createJobQuery();
      timerQuery.timers();
      List<Job> timers = timerQuery.list();
      for(Job t : timers)
      {
        JobRef ref = ModelAdaptor.adoptJob(t);
        ref.setType("timer");
        results.add(ref);
      }

      // messages
      JobQuery msgQuery= mgmtService.createJobQuery();
      msgQuery.messages();
      List<Job> msgs = msgQuery.list();
      for(Job t : msgs)
      {
        JobRef ref = ModelAdaptor.adoptJob(t);
        ref.setType("message");
        results.add(ref);
      }
    }
    finally
    {
View Full Code Here


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

              /*controller.handleEvent(
                  new Event(UpdateJobDetailAction.ID, item)
              );*/
            }
View Full Code Here

      toolBar.add(
          new Button("Execute", new ClickHandler() {

            public void onClick(ClickEvent clickEvent)
            {             
              JobRef selection = getSelection();
              if(null==selection)
              {
                MessageBox.alert("Missing selection", "Please select a job!");
              }
              else
              {
                controller.handleEvent(
                    new Event(ExecuteJobAction.ID, selection.getId())
                );
              }
            }
          }
          )
View Full Code Here

    }
  }

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

      public void onChange(Widget widget)
      {
        int index = listBox.getSelectedIndex();
        if(index!=-1)
        {
          JobRef item = listBox.getItem(index);

          /*controller.handleEvent(
              new Event(UpdateJobDetailAction.ID, item)
          );*/
        }
View Full Code Here

      toolBar.addSeparator();

      toolBar.add(
          new ToolButton("Execute", new ClickListener() {
            public void onClick(Widget sender) {
              JobRef selection = getSelection();
              if(null==selection)
              {
                MessageBox.alert("Missing selection", "Please select a job!");
              }
              else
              {
                controller.handleEvent(
                    new Event(ExecuteJobAction.ID, selection.getId())
                );
              }
            }
          }
          )
View Full Code Here

    }
  }

  public JobRef getSelection()
  {
    JobRef 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.JobRef

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.