当前位置: 首页>>代码示例>>Java>>正文


Java ExternalTaskService类代码示例

本文整理汇总了Java中org.camunda.bpm.engine.ExternalTaskService的典型用法代码示例。如果您正苦于以下问题:Java ExternalTaskService类的具体用法?Java ExternalTaskService怎么用?Java ExternalTaskService使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


ExternalTaskService类属于org.camunda.bpm.engine包,在下文中一共展示了ExternalTaskService类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: mockServices

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
private void mockServices(ProcessEngine engine) {
  RepositoryService repoService = mock(RepositoryService.class);
  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);
  ExternalTaskService externalTaskService = mock(ExternalTaskService.class);

  when(engine.getRepositoryService()).thenReturn(repoService);
  when(engine.getIdentityService()).thenReturn(identityService);
  when(engine.getTaskService()).thenReturn(taskService);
  when(engine.getRuntimeService()).thenReturn(runtimeService);
  when(engine.getFormService()).thenReturn(formService);
  when(engine.getHistoryService()).thenReturn(historyService);
  when(engine.getManagementService()).thenReturn(managementService);
  when(engine.getCaseService()).thenReturn(caseService);
  when(engine.getFilterService()).thenReturn(filterService);
  when(engine.getExternalTaskService()).thenReturn(externalTaskService);
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:24,代码来源:MockedProcessEngineProvider.java

示例2: getErrorDetails

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public String getErrorDetails() {
  ExternalTaskService externalTaskService = engine.getExternalTaskService();

  try {
    return externalTaskService.getExternalTaskErrorDetails(externalTaskId);
  } catch (NotFoundException e) {
    throw new RestException(Status.NOT_FOUND, e, "External task with id " + externalTaskId + " does not exist");
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:11,代码来源:ExternalTaskResourceImpl.java

示例3: setRetries

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public void setRetries(RetriesDto dto) {
  ExternalTaskService externalTaskService = engine.getExternalTaskService();

  try {
    externalTaskService.setRetries(externalTaskId, dto.getRetries());
  } catch (NotFoundException e) {
    throw new RestException(Status.NOT_FOUND, e, "External task with id " + externalTaskId + " does not exist");
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:11,代码来源:ExternalTaskResourceImpl.java

示例4: setPriority

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public void setPriority(PriorityDto dto) {
  ExternalTaskService externalTaskService = engine.getExternalTaskService();

  try {
    externalTaskService.setPriority(externalTaskId, dto.getPriority());
  } catch (NotFoundException e) {
    throw new RestException(Status.NOT_FOUND, e, "External task with id " + externalTaskId + " does not exist");
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:11,代码来源:ExternalTaskResourceImpl.java

示例5: unlock

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public void unlock() {
  ExternalTaskService externalTaskService = engine.getExternalTaskService();

  try {
    externalTaskService.unlock(externalTaskId);
  } catch (NotFoundException e) {
    throw new RestException(Status.NOT_FOUND, e, "External task with id " + externalTaskId + " does not exist");
  }
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:11,代码来源:ExternalTaskResourceImpl.java

示例6: updateRetries

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
protected UpdateExternalTaskRetriesBuilder updateRetries(SetRetriesForExternalTasksDto retriesDto) {

    ExternalTaskService externalTaskService = getProcessEngine().getExternalTaskService();

    List<String> externalTaskIds = retriesDto.getExternalTaskIds();
    List<String> processInstanceIds = retriesDto.getProcessInstanceIds();

    ExternalTaskQuery externalTaskQuery = null;
    ProcessInstanceQuery processInstanceQuery = null;
    HistoricProcessInstanceQuery historicProcessInstanceQuery = null;

    ExternalTaskQueryDto externalTaskQueryDto = retriesDto.getExternalTaskQuery();
    if (externalTaskQueryDto != null) {
      externalTaskQuery = externalTaskQueryDto.toQuery(getProcessEngine());
    }

    ProcessInstanceQueryDto processInstanceQueryDto = retriesDto.getProcessInstanceQuery();
    if (processInstanceQueryDto != null) {
      processInstanceQuery = processInstanceQueryDto.toQuery(getProcessEngine());
    }

    HistoricProcessInstanceQueryDto historicProcessInstanceQueryDto = retriesDto.getHistoricProcessInstanceQuery();
    if (historicProcessInstanceQueryDto != null) {
      historicProcessInstanceQuery = historicProcessInstanceQueryDto.toQuery(getProcessEngine());
    }

    return externalTaskService.updateRetries()
      .externalTaskIds(externalTaskIds)
      .processInstanceIds(processInstanceIds)
      .externalTaskQuery(externalTaskQuery)
      .processInstanceQuery(processInstanceQuery)
      .historicProcessInstanceQuery(historicProcessInstanceQuery);
  }
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:34,代码来源:ExternalTaskRestServiceImpl.java

示例7: getExternalTaskService

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public ExternalTaskService getExternalTaskService() {
  return processEngine.getExternalTaskService();
}
 
开发者ID:camunda,项目名称:camunda-bpm-assert-scenario,代码行数:4,代码来源:AbstractProcessEngineServicesDelegate.java

示例8: mockExternalTaskQuery

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public static ExternalTaskQueryMock mockExternalTaskQuery(final ExternalTaskService serviceMock) {
  return new ExternalTaskQueryMock().forService(serviceMock);
}
 
开发者ID:camunda,项目名称:camunda-bpm-mockito,代码行数:4,代码来源:QueryMocks.java

示例9: ExternalTaskQueryMock

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public ExternalTaskQueryMock() {
 super(ExternalTaskQuery.class, ExternalTaskService.class);
}
 
开发者ID:camunda,项目名称:camunda-bpm-mockito,代码行数:4,代码来源:ExternalTaskQueryMock.java

示例10: mockExternalTaskQuery

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public static ExternalTaskQueryMock mockExternalTaskQuery(final ExternalTaskService serviceMock) {
  return QueryMocks.mockExternalTaskQuery(serviceMock);
}
 
开发者ID:camunda,项目名称:camunda-bpm-mockito,代码行数:4,代码来源:CamundaMockito.java

示例11: getExternalTaskService

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
  return innerRule.getExternalTaskService();
}
 
开发者ID:camunda,项目名称:camunda-bpm-needle,代码行数:5,代码来源:ProcessEngineNeedleRule.java

示例12: getExternalTaskService

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
  return delegate.getExternalTaskService();
}
 
开发者ID:camunda,项目名称:camunda-bpm-needle,代码行数:5,代码来源:ProcessEngineExternalResource.java

示例13: getExternalTaskService

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
  return outerRule.getExternalTaskService();
}
 
开发者ID:camunda,项目名称:camunda-bpm-needle,代码行数:5,代码来源:ProcessEngineTestWatcher.java

示例14: getExternalTaskService

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
  return processEngine.getExternalTaskService();
}
 
开发者ID:camunda,项目名称:camunda-bpm-needle,代码行数:5,代码来源:CamundaInstancesSupplier.java

示例15: getExternalTaskService

import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public ExternalTaskService getExternalTaskService() {
  return externalTaskService;
}
 
开发者ID:camunda,项目名称:camunda-bpm-platform,代码行数:4,代码来源:ProcessEngineConfigurationImpl.java


注:本文中的org.camunda.bpm.engine.ExternalTaskService类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。