コード例 #1
0
  public void handleSuccessfulResponse(
      final Controller controller, final Object event, Response response) {
    String target = (String) event;

    List<ProcessDefinitionRef> definitions = JSOParser.parseProcessDefinitions(response.getText());
    SearchDefinitionView view = (SearchDefinitionView) controller.getView(target);
    view.update(definitions);

    ConsoleLog.info("Loaded " + definitions.size() + " process definitions");
  }
コード例 #2
0
  public void handleSuccessfulResponse(
      final Controller controller, final Object event, Response response) {
    String id = (String) event;

    ConsoleLog.debug(
        "Executed jod with id " + id + " and response from server is " + response.getText());

    // reload job list
    controller.handleEvent(new Event(UpdateJobsAction.ID, null));
  }