Class CaseInstanceResourceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.sub.runtime.impl.CaseInstanceResourceImpl
-
- All Implemented Interfaces:
CaseInstanceResource
public class CaseInstanceResourceImpl extends java.lang.Object implements CaseInstanceResource
- Author:
- Roman Smirnov
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String
caseInstanceId
protected ProcessEngine
engine
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
-
Constructor Summary
Constructors Constructor Description CaseInstanceResourceImpl(ProcessEngine engine, java.lang.String caseInstanceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close(CaseExecutionTriggerDto triggerDto)
void
complete(CaseExecutionTriggerDto triggerDto)
protected InvalidRequestException
createInvalidRequestException(java.lang.String transition, javax.ws.rs.core.Response.Status status, ProcessEngineException cause)
protected RestException
createRestException(java.lang.String transition, javax.ws.rs.core.Response.Status status, ProcessEngineException cause)
CaseInstanceDto
getCaseInstance()
VariableResource
getVariablesResource()
protected void
initializeCommand(CaseExecutionCommandBuilder commandBuilder, CaseExecutionTriggerDto triggerDto, java.lang.String transition)
protected void
initializeCommandWithDeletions(CaseExecutionCommandBuilder commandBuilder, java.util.List<VariableNameDto> deletions, java.lang.String transition)
protected void
initializeCommandWithVariables(CaseExecutionCommandBuilder commandBuilder, java.util.Map<java.lang.String,TriggerVariableValueDto> variables, java.lang.String transition)
void
terminate(CaseExecutionTriggerDto triggerDto)
-
-
-
Field Detail
-
engine
protected ProcessEngine engine
-
caseInstanceId
protected java.lang.String caseInstanceId
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
CaseInstanceResourceImpl
public CaseInstanceResourceImpl(ProcessEngine engine, java.lang.String caseInstanceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getCaseInstance
public CaseInstanceDto getCaseInstance()
- Specified by:
getCaseInstance
in interfaceCaseInstanceResource
-
complete
public void complete(CaseExecutionTriggerDto triggerDto)
- Specified by:
complete
in interfaceCaseInstanceResource
-
close
public void close(CaseExecutionTriggerDto triggerDto)
- Specified by:
close
in interfaceCaseInstanceResource
-
terminate
public void terminate(CaseExecutionTriggerDto triggerDto)
- Specified by:
terminate
in interfaceCaseInstanceResource
-
createInvalidRequestException
protected InvalidRequestException createInvalidRequestException(java.lang.String transition, javax.ws.rs.core.Response.Status status, ProcessEngineException cause)
-
createRestException
protected RestException createRestException(java.lang.String transition, javax.ws.rs.core.Response.Status status, ProcessEngineException cause)
-
initializeCommand
protected void initializeCommand(CaseExecutionCommandBuilder commandBuilder, CaseExecutionTriggerDto triggerDto, java.lang.String transition)
-
initializeCommandWithVariables
protected void initializeCommandWithVariables(CaseExecutionCommandBuilder commandBuilder, java.util.Map<java.lang.String,TriggerVariableValueDto> variables, java.lang.String transition)
-
initializeCommandWithDeletions
protected void initializeCommandWithDeletions(CaseExecutionCommandBuilder commandBuilder, java.util.List<VariableNameDto> deletions, java.lang.String transition)
-
getVariablesResource
public VariableResource getVariablesResource()
- Specified by:
getVariablesResource
in interfaceCaseInstanceResource
-
-