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

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


{
  public final static String ID = UpdateProcessDetailAction.class.getName();

  public void execute(Controller controller, Object object)
  {
    ProcessDefinitionRef process = object!=null ? (ProcessDefinitionRef)object : null;
    ProcessDetailView view = (ProcessDetailView)controller.getView(ProcessDetailView.ID);

    if(process!=null)
      view.update(process);
    else
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 handleSuccessfulResponse(
      final Controller controller, final Object event, Response response)
  {
    ProcessDefinitionRef inst = ((HistoryActivityDiagramEvent) event).getDefinition();

    List<ActiveNodeInfo> activeNodeInfos = DTOParser.parseActiveNodeInfo(response.getText());
   
    // update view
    ActivityDiagramView view = (ActivityDiagramView) controller.getView(ActivityDiagramView.ID);
    view.update(
        new ActivityDiagramResultEvent(
            URLBuilder.getInstance().getProcessImageURL(inst.getId()),
            activeNodeInfos
        )
    );
   
  }
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

    return ID;
  }

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

  public void handleSuccessfulResponse(final Controller controller, final Object event, Response response)
  {
    final long start = System.currentTimeMillis();

    final ProcessDefinitionRef def = (ProcessDefinitionRef)event;
    List<ProcessInstanceRef> instances = JSOParser.parseProcessInstances(response.getText());
    InstanceListView view = (InstanceListView) controller.getView(InstanceListView.ID);
    if(view!=null) view.update(def, instances);

    ConsoleLog.info("Loaded " + instances.size() + " process instance(s) in "+(System.currentTimeMillis()-start)+" ms");
View Full Code Here

    return ID;
  }

  public String getUrl(Object event)
  {
    ProcessDefinitionRef inst =  ((HistoryActivityDiagramEvent) event).getDefinition();
    return URLBuilder.getInstance().getDefinitionHistoryNodeInfoURL(inst.getId(), ((HistoryActivityDiagramEvent) event).getExecutedActivities());
  }
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.