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

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


    return ID;
  }

  public String getUrl(Object event)
  {
    final ProcessDefinitionRef def = (ProcessDefinitionRef)event;
    return URLBuilder.getInstance().getProcessInstancesURL(def.getId());
  }
View Full Code Here


    return RequestBuilder.GET;
  }

  public void handleSuccessfulResponse(final Controller controller, final Object event, Response response)
  {
    final ProcessDefinitionRef def = (ProcessDefinitionRef)event;
    JSONValue json = JSONParser.parse(response.getText());

    List<ProcessInstanceRef> instances = DTOParser.parseProcessInstances(json);
    InstanceListView view = (InstanceListView) controller.getView(InstanceListView.ID);
    view.update(def, instances);
View Full Code Here

    return ID;
  }

  public String getUrl(Object event)
  {
    final ProcessDefinitionRef def = (ProcessDefinitionRef)event;
    return URLBuilder.getInstance().getStartNewInstanceURL(def.getId());
  }
View Full Code Here

    return RequestBuilder.POST;
  }

  public void handleSuccessfulResponse(final Controller controller, final Object event, Response response)
  {
    final ProcessDefinitionRef def = (ProcessDefinitionRef)event;
   
    // force reload instance list
    controller.handleEvent(
        new Event(UpdateInstancesAction.ID, def)
    );
View Full Code Here

    return ID;
  }

  public String getUrl(Object event)
  {
    ProcessDefinitionRef procRef = (ProcessDefinitionRef)event;
    return URLBuilder.getInstance().getRemoveDefinitionURL(procRef.getId());
  }
View Full Code Here

  }

  public void handleSuccessfulResponse(final Controller controller, final Object event, Response response)
  {
    InstanceListView view = (InstanceListView) controller.getView(InstanceListView.ID);
    ProcessDefinitionRef def = view.getCurrentDefinition();

    // force reload instance list
    controller.handleEvent( new Event(UpdateInstancesAction.ID, def));
  }
View Full Code Here

  }

  public void handleSuccessfulResponse(final Controller controller, final Object event, Response response)
  {
    InstanceListView view = (InstanceListView) controller.getView(InstanceListView.ID);
    ProcessDefinitionRef def = view.getCurrentDefinition();

    // refresh instances
    controller.handleEvent(
        new Event(
            UpdateInstancesAction.ID,
View Full Code Here

      public void onChange(Widget widget)
      {
        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

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.