public class CaseInstanceResourceImpl extends Object implements CaseInstanceResource
Modifier and Type | Field and Description |
---|---|
protected String |
caseInstanceId |
protected ProcessEngine |
engine |
protected com.fasterxml.jackson.databind.ObjectMapper |
objectMapper |
Constructor and Description |
---|
CaseInstanceResourceImpl(ProcessEngine engine,
String caseInstanceId,
com.fasterxml.jackson.databind.ObjectMapper objectMapper) |
Modifier and Type | Method and Description |
---|---|
void |
close(CaseExecutionTriggerDto triggerDto) |
void |
complete(CaseExecutionTriggerDto triggerDto) |
protected InvalidRequestException |
createInvalidRequestException(String transition,
javax.ws.rs.core.Response.Status status,
ProcessEngineException cause) |
protected RestException |
createRestException(String transition,
javax.ws.rs.core.Response.Status status,
ProcessEngineException cause) |
CaseInstanceDto |
getCaseInstance() |
VariableResource |
getVariablesResource() |
protected void |
initializeCommand(CaseExecutionCommandBuilder commandBuilder,
CaseExecutionTriggerDto triggerDto,
String transition) |
protected void |
initializeCommandWithDeletions(CaseExecutionCommandBuilder commandBuilder,
List<VariableNameDto> deletions,
String transition) |
protected void |
initializeCommandWithVariables(CaseExecutionCommandBuilder commandBuilder,
Map<String,TriggerVariableValueDto> variables,
String transition) |
void |
terminate(CaseExecutionTriggerDto triggerDto) |
protected ProcessEngine engine
protected String caseInstanceId
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
public CaseInstanceResourceImpl(ProcessEngine engine, String caseInstanceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
public CaseInstanceDto getCaseInstance()
getCaseInstance
in interface CaseInstanceResource
public void complete(CaseExecutionTriggerDto triggerDto)
complete
in interface CaseInstanceResource
public void close(CaseExecutionTriggerDto triggerDto)
close
in interface CaseInstanceResource
public void terminate(CaseExecutionTriggerDto triggerDto)
terminate
in interface CaseInstanceResource
protected InvalidRequestException createInvalidRequestException(String transition, javax.ws.rs.core.Response.Status status, ProcessEngineException cause)
protected RestException createRestException(String transition, javax.ws.rs.core.Response.Status status, ProcessEngineException cause)
protected void initializeCommand(CaseExecutionCommandBuilder commandBuilder, CaseExecutionTriggerDto triggerDto, String transition)
protected void initializeCommandWithVariables(CaseExecutionCommandBuilder commandBuilder, Map<String,TriggerVariableValueDto> variables, String transition)
protected void initializeCommandWithDeletions(CaseExecutionCommandBuilder commandBuilder, List<VariableNameDto> deletions, String transition)
public VariableResource getVariablesResource()
getVariablesResource
in interface CaseInstanceResource
Copyright © 2017. All rights reserved.