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

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

public class CaseExecutionResourceImpl
extends Object
implements CaseExecutionResource

Author:
Roman Smirnov

Field Summary
protected  String caseExecutionId
           
protected  ProcessEngine engine
           
protected  com.fasterxml.jackson.databind.ObjectMapper objectMapper
           
 
Constructor Summary
CaseExecutionResourceImpl(ProcessEngine engine, String caseExecutionId, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
           
 
Method Summary
 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)
           
 void disable(CaseExecutionTriggerDto triggerDto)
           
 CaseExecutionDto getCaseExecution()
           
 VariableResource getVariables()
           
 VariableResource getVariablesLocal()
           
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 manualStart(CaseExecutionTriggerDto triggerDto)
           
 void reenable(CaseExecutionTriggerDto triggerDto)
           
 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

caseExecutionId

protected String caseExecutionId

objectMapper

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

CaseExecutionResourceImpl

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

getCaseExecution

public CaseExecutionDto getCaseExecution()
Specified by:
getCaseExecution in interface CaseExecutionResource

manualStart

public void manualStart(CaseExecutionTriggerDto triggerDto)
Specified by:
manualStart in interface CaseExecutionResource

disable

public void disable(CaseExecutionTriggerDto triggerDto)
Specified by:
disable in interface CaseExecutionResource

reenable

public void reenable(CaseExecutionTriggerDto triggerDto)
Specified by:
reenable in interface CaseExecutionResource

complete

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

terminate

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

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)

getVariablesLocal

public VariableResource getVariablesLocal()
Specified by:
getVariablesLocal in interface CaseExecutionResource

getVariables

public VariableResource getVariables()
Specified by:
getVariables in interface CaseExecutionResource


Copyright © 2016 camunda services GmbH. All rights reserved.