本文整理汇总了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);
}
示例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");
}
}
示例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");
}
}
示例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");
}
}
示例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");
}
}
示例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);
}
示例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);
}
示例9: ExternalTaskQueryMock
import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public ExternalTaskQueryMock() {
super(ExternalTaskQuery.class, ExternalTaskService.class);
}
示例10: mockExternalTaskQuery
import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public static ExternalTaskQueryMock mockExternalTaskQuery(final ExternalTaskService serviceMock) {
return QueryMocks.mockExternalTaskQuery(serviceMock);
}
示例11: getExternalTaskService
import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
return innerRule.getExternalTaskService();
}
示例12: getExternalTaskService
import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
return delegate.getExternalTaskService();
}
示例13: getExternalTaskService
import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
return outerRule.getExternalTaskService();
}
示例14: getExternalTaskService
import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
@Override
public ExternalTaskService getExternalTaskService() {
return processEngine.getExternalTaskService();
}
示例15: getExternalTaskService
import org.camunda.bpm.engine.ExternalTaskService; //导入依赖的package包/类
public ExternalTaskService getExternalTaskService() {
return externalTaskService;
}