Examples of ManagementService

  • org.apache.ode.axis2.service.ManagementService
    Axis2 wrapper for process and instance management interfaces.
  • org.camunda.bpm.engine.ManagementService
    Service for admin and maintenance operations on the process engine. These operations will typically not be used in a workflow driven application, but are used in for example the operational console. @author Tom Baeyens @author Joram Barrez @author Falko Menge @author Thorben Lindhauer
  • org.hornetq.core.server.management.ManagementService
    @author Jeff Mesnil @version $Revision$

  • Examples of org.apache.ode.axis2.service.ManagementService

                }

                File deploymentDir = new File(_workRoot, "processes");
                _poller = new DeploymentPoller(deploymentDir, this);

                new ManagementService().enableService(_axisConfig, _server, _store, _appRoot.getAbsolutePath());
                new DeploymentWebService().enableService(_axisConfig, _server, _store, _poller, _appRoot.getAbsolutePath(), _workRoot
                        .getAbsolutePath());

                _store.loadAll();
    View Full Code Here

    Examples of org.apache.ode.axis2.service.ManagementService

                }

                File deploymentDir = new File(_workRoot, "processes");
                _poller = new DeploymentPoller(deploymentDir, this);

                _mgtService = new ManagementService();
                _mgtService.enableService(_axisConfig, _server, _store, _appRoot.getAbsolutePath());

                new DeploymentWebService().enableService(_axisConfig, _server, _store, _poller, _appRoot.getAbsolutePath(), _workRoot
                        .getAbsolutePath());
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

        IdentityService identityService = mock(IdentityService.class);
        TaskService taskService = mock(TaskService.class);
        RuntimeService runtimeService = mock(RuntimeService.class);
        FormService formService = mock(FormService.class);
        HistoryService historyService = mock(HistoryService.class);
        ManagementService managementService = mock(ManagementService.class);
        CaseService caseService = mock(CaseService.class);
        FilterService filterService = mock(FilterService.class);

        when(engine.getRepositoryService()).thenReturn(repoService);
        when(engine.getIdentityService()).thenReturn(identityService);
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

      public ProcessEngine getValue() {
        return processEngine;
      }

      public Set<String> getRegisteredDeployments() {
        ManagementService managementService = processEngine.getManagementService();
        return managementService.getRegisteredDeployments();
      }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

        ManagementService managementService = processEngine.getManagementService();
        return managementService.getRegisteredDeployments();
      }

      public void registerDeployment(String deploymentId) {
        ManagementService managementService = processEngine.getManagementService();
        managementService.registerDeploymentForJobExecutor(deploymentId);
      }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

        ManagementService managementService = processEngine.getManagementService();
        managementService.registerDeploymentForJobExecutor(deploymentId);
      }

      public void unregisterDeployment(String deploymentId) {
        ManagementService managementService = processEngine.getManagementService();
        managementService.unregisterDeploymentForJobExecutor(deploymentId);
      }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

        this.engine = engine;
        this.jobDefinitionId = jobDefinitionId;
      }

      public JobDefinitionDto getJobDefinition() {
        ManagementService managementService = engine.getManagementService();
        JobDefinition jobDefinition = managementService.createJobDefinitionQuery().jobDefinitionId(jobDefinitionId).singleResult();

        if (jobDefinition == null) {
          throw new InvalidRequestException(Status.NOT_FOUND, "Job Definition with id " + jobDefinitionId + " does not exist");
        }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

        if (params > 1) {
          String message = "Only one of jobDefinitionId, processDefinitionId or processDefinitionKey should be set to update the suspension state.";
          throw new InvalidRequestException(Status.BAD_REQUEST, message);
        }

        ManagementService managementService = engine.getManagementService();

        Date delayedExecutionDate = null;
        if (executionDate != null && !executionDate.equals("")) {
          delayedExecutionDate = DateTimeUtil.parseDate(executionDate);
        }

        if (jobDefinitionId != null) {
          // activate/suspend job definition by id
          if (getSuspended()) {
            managementService.suspendJobDefinitionById(jobDefinitionId, includeJobs, delayedExecutionDate);
          } else {
            managementService.activateJobDefinitionById(jobDefinitionId, includeJobs, delayedExecutionDate);
          }
        } else

        if (processDefinitionId != null) {
          // activate/suspend job definition by process definition id
          if (getSuspended()) {
            managementService.suspendJobDefinitionByProcessDefinitionId(processDefinitionId, includeJobs, delayedExecutionDate);
          } else {
            managementService.activateJobDefinitionByProcessDefinitionId(processDefinitionId, includeJobs, delayedExecutionDate);
          }
        } else

        if (processDefinitionKey != null) {
          // activate/suspend job definition by process definition key
          if (getSuspended()) {
            managementService.suspendJobDefinitionByProcessDefinitionKey(processDefinitionKey, includeJobs, delayedExecutionDate);
          } else {
            managementService.activateJobDefinitionByProcessDefinitionKey(processDefinitionKey, includeJobs, delayedExecutionDate);
          }
        } else {
          String message = "Either jobDefinitionId, processDefinitionId or processDefinitionKey should be set to update the suspension state.";
          throw new InvalidRequestException(Status.BAD_REQUEST, message);
        }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

      }

      public void setJobRetries(JobRetriesDto dto) {
        try {
          ManagementService managementService = engine.getManagementService();
          managementService.setJobRetriesByJobDefinitionId(jobDefinitionId, dto.getRetries());
        } catch (ProcessEngineException e) {
          throw new InvalidRequestException(Status.INTERNAL_SERVER_ERROR, e.getMessage());
        }
      }
    View Full Code Here

    Examples of org.camunda.bpm.engine.ManagementService

      public List<StatisticsResultDto> getActivityStatistics(Boolean includeFailedJobs, Boolean includeIncidents, String includeIncidentsForType) {
        if (includeIncidents != null && includeIncidentsForType != null) {
          throw new InvalidRequestException(Status.BAD_REQUEST, "Only one of the query parameter includeIncidents or includeIncidentsForType can be set.");
        }

        ManagementService mgmtService = engine.getManagementService();
        ActivityStatisticsQuery query = mgmtService.createActivityStatisticsQuery(processDefinitionId);

        if (includeFailedJobs != null && includeFailedJobs) {
          query.includeFailedJobs();
        }
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.