org.camunda.bpm.engine.rest.sub.runtime.impl
Class CaseInstanceResourceImpl

java.lang.Object
  extended by org.camunda.bpm.engine.rest.sub.runtime.impl.CaseInstanceResourceImpl
All Implemented Interfaces:
CaseInstanceResource

public class CaseInstanceResourceImpl
extends Object
implements CaseInstanceResource

Author:
Roman Smirnov

Field Summary
protected  String caseInstanceId
           
protected  ProcessEngine engine
           
protected  com.fasterxml.jackson.databind.ObjectMapper objectMapper
           
 
Constructor Summary
CaseInstanceResourceImpl(ProcessEngine engine, String caseInstanceId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

engine

protected ProcessEngine engine

caseInstanceId

protected String caseInstanceId

objectMapper

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

CaseInstanceResourceImpl

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

getCaseInstance

public CaseInstanceDto getCaseInstance()
Specified by:
getCaseInstance in interface CaseInstanceResource

complete

public void complete(CaseExecutionTriggerDto triggerDto)
Specified by:
complete in interface CaseInstanceResource

close

public void close(CaseExecutionTriggerDto triggerDto)
Specified by:
close in interface CaseInstanceResource

terminate

public void terminate(CaseExecutionTriggerDto triggerDto)
Specified by:
terminate in interface CaseInstanceResource

createInvalidRequestException

protected InvalidRequestException createInvalidRequestException(String transition,
                                                                javax.ws.rs.core.Response.Status status,
                                                                ProcessEngineException cause)

createRestException

protected RestException createRestException(String transition,
                                            javax.ws.rs.core.Response.Status status,
                                            ProcessEngineException cause)

initializeCommand

protected void initializeCommand(CaseExecutionCommandBuilder commandBuilder,
                                 CaseExecutionTriggerDto triggerDto,
                                 String transition)

initializeCommandWithVariables

protected void initializeCommandWithVariables(CaseExecutionCommandBuilder commandBuilder,
                                              Map<String,TriggerVariableValueDto> variables,
                                              String transition)

initializeCommandWithDeletions

protected void initializeCommandWithDeletions(CaseExecutionCommandBuilder commandBuilder,
                                              List<VariableNameDto> deletions,
                                              String transition)

getVariablesResource

public VariableResource getVariablesResource()
Specified by:
getVariablesResource in interface CaseInstanceResource


Copyright © 2016 camunda services GmbH. All rights reserved.