org.camunda.bpm.engine.rest.sub.externaltask.impl
Class ExternalTaskResourceImpl

java.lang.Object
  extended by org.camunda.bpm.engine.rest.sub.externaltask.impl.ExternalTaskResourceImpl
All Implemented Interfaces:
ExternalTaskResource

public class ExternalTaskResourceImpl
extends Object
implements ExternalTaskResource

Author:
Thorben Lindhauer

Field Summary
protected  ProcessEngine engine
           
protected  String externalTaskId
           
protected  com.fasterxml.jackson.databind.ObjectMapper objectMapper
           
 
Constructor Summary
ExternalTaskResourceImpl(ProcessEngine engine, String externalTaskId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
           
 
Method Summary
 void complete(CompleteExternalTaskDto dto)
           
 String getErrorDetails()
           
 ExternalTaskDto getExternalTask()
           
 void handleBpmnError(ExternalTaskBpmnError dto)
           
 void handleFailure(ExternalTaskFailureDto dto)
           
 void setPriority(PriorityDto dto)
           
 void setRetries(RetriesDto dto)
           
 void unlock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

protected ProcessEngine engine

externalTaskId

protected String externalTaskId

objectMapper

protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
Constructor Detail

ExternalTaskResourceImpl

public ExternalTaskResourceImpl(ProcessEngine engine,
                                String externalTaskId,
                                com.fasterxml.jackson.databind.ObjectMapper objectMapper)
Method Detail

getExternalTask

public ExternalTaskDto getExternalTask()
Specified by:
getExternalTask in interface ExternalTaskResource

getErrorDetails

public String getErrorDetails()
Specified by:
getErrorDetails in interface ExternalTaskResource

setRetries

public void setRetries(RetriesDto dto)
Specified by:
setRetries in interface ExternalTaskResource

setPriority

public void setPriority(PriorityDto dto)
Specified by:
setPriority in interface ExternalTaskResource

complete

public void complete(CompleteExternalTaskDto dto)
Specified by:
complete in interface ExternalTaskResource

handleFailure

public void handleFailure(ExternalTaskFailureDto dto)
Specified by:
handleFailure in interface ExternalTaskResource

handleBpmnError

public void handleBpmnError(ExternalTaskBpmnError dto)
Specified by:
handleBpmnError in interface ExternalTaskResource

unlock

public void unlock()
Specified by:
unlock in interface ExternalTaskResource


Copyright © 2016 camunda services GmbH. All rights reserved.