Class ProcessDefinitionResourceImpl
- java.lang.Object
-
- org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl
-
- All Implemented Interfaces:
ProcessDefinitionResource
public class ProcessDefinitionResourceImpl extends java.lang.Object implements ProcessDefinitionResource
-
-
Field Summary
Fields Modifier and Type Field Description protected ProcessEngine
engine
protected com.fasterxml.jackson.databind.ObjectMapper
objectMapper
protected java.lang.String
processDefinitionId
protected java.lang.String
rootResourcePath
-
Constructor Summary
Constructors Constructor Description ProcessDefinitionResourceImpl(ProcessEngine engine, java.lang.String processDefinitionId, java.lang.String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
deleteProcessDefinition(boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
java.util.List<StatisticsResultDto>
getActivityStatistics(java.lang.Boolean includeFailedJobs, java.lang.Boolean includeIncidents, java.lang.String includeIncidentsForType)
javax.ws.rs.core.Response
getDeployedStartForm()
java.util.Map<java.lang.String,VariableValueDto>
getFormVariables(java.lang.String variableNames, boolean deserializeValues)
static java.lang.String
getMediaTypeForFileSuffix(java.lang.String fileName)
Determines an IANA media type based on the file suffix.ProcessDefinitionDto
getProcessDefinition()
ProcessDefinitionDiagramDto
getProcessDefinitionBpmn20Xml()
javax.ws.rs.core.Response
getProcessDefinitionDiagram()
javax.ws.rs.core.Response
getRenderedForm()
FormDto
getStartForm()
protected java.lang.String
getStartFormMediaType(java.lang.String processDefinitionId)
java.util.List<CalledProcessDefinitionDto>
getStaticCalledProcessDefinitions()
void
restartProcessInstance(RestartProcessInstanceDto restartProcessInstanceDto)
BatchDto
restartProcessInstanceAsync(RestartProcessInstanceDto restartProcessInstanceDto)
ProcessInstanceDto
startProcessInstance(javax.ws.rs.core.UriInfo context, StartProcessInstanceDto parameters)
protected ProcessInstanceWithVariables
startProcessInstanceAtActivities(StartProcessInstanceDto dto)
ProcessInstanceDto
submitForm(javax.ws.rs.core.UriInfo context, StartProcessInstanceDto parameters)
void
updateHistoryTimeToLive(HistoryTimeToLiveDto historyTimeToLiveDto)
void
updateSuspensionState(ProcessDefinitionSuspensionStateDto dto)
-
-
-
Field Detail
-
engine
protected ProcessEngine engine
-
processDefinitionId
protected java.lang.String processDefinitionId
-
rootResourcePath
protected java.lang.String rootResourcePath
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Detail
-
ProcessDefinitionResourceImpl
public ProcessDefinitionResourceImpl(ProcessEngine engine, java.lang.String processDefinitionId, java.lang.String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Detail
-
getProcessDefinition
public ProcessDefinitionDto getProcessDefinition()
- Specified by:
getProcessDefinition
in interfaceProcessDefinitionResource
-
deleteProcessDefinition
public javax.ws.rs.core.Response deleteProcessDefinition(boolean cascade, boolean skipCustomListeners, boolean skipIoMappings)
- Specified by:
deleteProcessDefinition
in interfaceProcessDefinitionResource
-
startProcessInstance
public ProcessInstanceDto startProcessInstance(javax.ws.rs.core.UriInfo context, StartProcessInstanceDto parameters)
- Specified by:
startProcessInstance
in interfaceProcessDefinitionResource
-
startProcessInstanceAtActivities
protected ProcessInstanceWithVariables startProcessInstanceAtActivities(StartProcessInstanceDto dto)
-
submitForm
public ProcessInstanceDto submitForm(javax.ws.rs.core.UriInfo context, StartProcessInstanceDto parameters)
- Specified by:
submitForm
in interfaceProcessDefinitionResource
-
getActivityStatistics
public java.util.List<StatisticsResultDto> getActivityStatistics(java.lang.Boolean includeFailedJobs, java.lang.Boolean includeIncidents, java.lang.String includeIncidentsForType)
- Specified by:
getActivityStatistics
in interfaceProcessDefinitionResource
-
getProcessDefinitionBpmn20Xml
public ProcessDefinitionDiagramDto getProcessDefinitionBpmn20Xml()
- Specified by:
getProcessDefinitionBpmn20Xml
in interfaceProcessDefinitionResource
-
getProcessDefinitionDiagram
public javax.ws.rs.core.Response getProcessDefinitionDiagram()
- Specified by:
getProcessDefinitionDiagram
in interfaceProcessDefinitionResource
-
getMediaTypeForFileSuffix
public static java.lang.String getMediaTypeForFileSuffix(java.lang.String fileName)
Determines an IANA media type based on the file suffix. Hint: as of Java 7 the method Files.probeContentType() provides an implementation based on file type detection.- Parameters:
fileName
-- Returns:
- content type, defaults to octet-stream
-
getStartForm
public FormDto getStartForm()
- Specified by:
getStartForm
in interfaceProcessDefinitionResource
-
getRenderedForm
public javax.ws.rs.core.Response getRenderedForm()
- Specified by:
getRenderedForm
in interfaceProcessDefinitionResource
-
updateSuspensionState
public void updateSuspensionState(ProcessDefinitionSuspensionStateDto dto)
- Specified by:
updateSuspensionState
in interfaceProcessDefinitionResource
-
updateHistoryTimeToLive
public void updateHistoryTimeToLive(HistoryTimeToLiveDto historyTimeToLiveDto)
- Specified by:
updateHistoryTimeToLive
in interfaceProcessDefinitionResource
-
getFormVariables
public java.util.Map<java.lang.String,VariableValueDto> getFormVariables(java.lang.String variableNames, boolean deserializeValues)
- Specified by:
getFormVariables
in interfaceProcessDefinitionResource
-
getStaticCalledProcessDefinitions
public java.util.List<CalledProcessDefinitionDto> getStaticCalledProcessDefinitions()
- Specified by:
getStaticCalledProcessDefinitions
in interfaceProcessDefinitionResource
-
restartProcessInstance
public void restartProcessInstance(RestartProcessInstanceDto restartProcessInstanceDto)
- Specified by:
restartProcessInstance
in interfaceProcessDefinitionResource
-
restartProcessInstanceAsync
public BatchDto restartProcessInstanceAsync(RestartProcessInstanceDto restartProcessInstanceDto)
- Specified by:
restartProcessInstanceAsync
in interfaceProcessDefinitionResource
-
getDeployedStartForm
public javax.ws.rs.core.Response getDeployedStartForm()
- Specified by:
getDeployedStartForm
in interfaceProcessDefinitionResource
-
getStartFormMediaType
protected java.lang.String getStartFormMediaType(java.lang.String processDefinitionId)
-
-