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

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


        }
    }

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


    return ID;
  }

  public String getUrl(Object event)
  {
    final ProcessInstanceRef inst = (ProcessInstanceRef)event;
    if(ProcessInstanceRef.STATE.ENDED == inst.getState())
      return URLBuilder.getInstance().getInstanceEndURL(inst.getId(), inst.getEndResult());
    else
      return URLBuilder.getInstance().getStateChangeURL(inst.getId(), inst.getState());
  }
View Full Code Here

        return ID;
    }

    public String getUrl(Object event)
    {       
        ProcessInstanceRef inst = (ProcessInstanceRef)event;
        return URLBuilder.getInstance().getActivityImage(inst.getDefinitionId(),inst.getId());
    }
View Full Code Here

    }

    public void handleSuccessfulResponse(
            final Controller controller, final Object event, Response response)
    {
        ProcessInstanceRef inst = (ProcessInstanceRef)event;

        // update view
        ActivityDiagramView view = (ActivityDiagramView) controller.getView(ActivityDiagramView.ID);
        String url = URLBuilder.getInstance().getActivityImage(inst.getDefinitionId(), inst.getId());
        view.update(url);
    }
View Full Code Here

    return ID;
  }

  public String getUrl(Object event)
  {
    ProcessInstanceRef instance = (ProcessInstanceRef)event;
    return URLBuilder.getInstance().getInstanceDeleteURL(instance.getId());
  }
View Full Code Here

                      public void onClick(ClickEvent clickEvent)
                      {
                          String diagramUrl = getCurrentDefintion().getDiagramUrl();
                          if(diagramUrl !=null && !diagramUrl.equals(""))
                          {
                              final ProcessInstanceRef selection = getCurrentInstance();
                              if(selection!=null)
                              {
                                  createDiagramWindow(selection);
 
                                  DeferredCommand.addCommand(new Command()
                                  {
                                      public void execute() {
                                          controller.handleEvent(
                                                  new Event(LoadInstanceActivityImage.class.getName(), selection)
                                          );
                                      }
                                  }
                                  );
 
                              }
                          }
                          else
                          {
                              MessageBox.alert("Incomplete deployment", "No diagram associated with process");
                          }
                      }
                  }
          );
        } else if(isjBPMInstance) {
          diagramBtn = new Button("Diagram",
                  new ClickHandler()
                  {
                    public void onClick(ClickEvent clickEvent)
                    {
                      String diagramUrl = getCurrentDefintion().getDiagramUrl();
                      if(diagramUrl !=null && !diagramUrl.equals(""))
                      {
                        ProcessInstanceRef selection = getCurrentInstance();
                        if(selection!=null)
                        {
                          createDiagramWindow(selection);
                          controller.handleEvent(
                              new Event(LoadActivityDiagramAction.ID, selection)
View Full Code Here

    return ID;
  }

  public String getUrl(Object event)
  {
    ProcessInstanceRef inst = (ProcessInstanceRef)event;
    return URLBuilder.getInstance().getActiveNodeInfoURL(inst.getId());
  }
View Full Code Here

  }

  public void handleSuccessfulResponse(
      final Controller controller, final Object event, Response response)
  {
    ProcessInstanceRef inst = (ProcessInstanceRef)event;

    List<ActiveNodeInfo> activeNodeInfos = DTOParser.parseActiveNodeInfo(response.getText());
    // update view
    ActivityDiagramView view = (ActivityDiagramView) controller.getView(ActivityDiagramView.ID);
    view.update(new ActivityDiagramResultEvent(URLBuilder.getInstance().getProcessImageURL(inst.getDefinitionId()), activeNodeInfos));
    }
View Full Code Here

          public void onClick(Widget widget)
          {
            String diagramUrl = getCurrentDefintion().getDiagramUrl();
            if(diagramUrl !=null && !diagramUrl.equals(""))
            {
              ProcessInstanceRef selection = getCurrentInstance();
              if(selection!=null)
              {
                createDiagramWindow(selection);
                controller.handleEvent(
                    new Event(LoadActivityDiagramAction.ID, selection)
View Full Code Here

    return ID;
  }

  public String getUrl(Object event)
  {
    ProcessInstanceRef inst = (ProcessInstanceRef)event;
    return URLBuilder.getInstance().getActiveNodeInfoURL(inst.getId());
  }
View Full Code Here

TOP

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

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.