Class ProcessDefinitionResourceImpl
java.lang.Object
org.camunda.bpm.engine.rest.sub.repository.impl.ProcessDefinitionResourceImpl
- All Implemented Interfaces:
ProcessDefinitionResource
-
Field Summary
Modifier and TypeFieldDescriptionprotected ProcessEngine
protected com.fasterxml.jackson.databind.ObjectMapper
protected String
protected String
-
Constructor Summary
ConstructorDescriptionProcessDefinitionResourceImpl
(ProcessEngine engine, String processDefinitionId, String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper) -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Response
deleteProcessDefinition
(boolean cascade, boolean skipCustomListeners, boolean skipIoMappings) getActivityStatistics
(Boolean includeFailedJobs, Boolean includeIncidents, String includeIncidentsForType) javax.ws.rs.core.Response
getFormVariables
(String variableNames, boolean deserializeValues) static String
getMediaTypeForFileSuffix
(String fileName) Determines an IANA media type based on the file suffix.javax.ws.rs.core.Response
javax.ws.rs.core.Response
protected String
getStartFormMediaType
(String processDefinitionId) void
restartProcessInstance
(RestartProcessInstanceDto restartProcessInstanceDto) restartProcessInstanceAsync
(RestartProcessInstanceDto restartProcessInstanceDto) startProcessInstance
(javax.ws.rs.core.UriInfo context, StartProcessInstanceDto parameters) protected ProcessInstanceWithVariables
submitForm
(javax.ws.rs.core.UriInfo context, StartProcessInstanceDto parameters) void
updateHistoryTimeToLive
(HistoryTimeToLiveDto historyTimeToLiveDto) void
-
Field Details
-
engine
-
processDefinitionId
-
rootResourcePath
-
objectMapper
protected com.fasterxml.jackson.databind.ObjectMapper objectMapper
-
-
Constructor Details
-
ProcessDefinitionResourceImpl
public ProcessDefinitionResourceImpl(ProcessEngine engine, String processDefinitionId, String rootResourcePath, com.fasterxml.jackson.databind.ObjectMapper objectMapper)
-
-
Method Details
-
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 List<StatisticsResultDto> getActivityStatistics(Boolean includeFailedJobs, Boolean includeIncidents, String includeIncidentsForType) - Specified by:
getActivityStatistics
in interfaceProcessDefinitionResource
-
getProcessDefinitionBpmn20Xml
- Specified by:
getProcessDefinitionBpmn20Xml
in interfaceProcessDefinitionResource
-
getProcessDefinitionDiagram
public javax.ws.rs.core.Response getProcessDefinitionDiagram()- Specified by:
getProcessDefinitionDiagram
in interfaceProcessDefinitionResource
-
getMediaTypeForFileSuffix
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
- Specified by:
getStartForm
in interfaceProcessDefinitionResource
-
getRenderedForm
public javax.ws.rs.core.Response getRenderedForm()- Specified by:
getRenderedForm
in interfaceProcessDefinitionResource
-
updateSuspensionState
- Specified by:
updateSuspensionState
in interfaceProcessDefinitionResource
-
updateHistoryTimeToLive
- Specified by:
updateHistoryTimeToLive
in interfaceProcessDefinitionResource
-
getFormVariables
public Map<String,VariableValueDto> getFormVariables(String variableNames, boolean deserializeValues) - Specified by:
getFormVariables
in interfaceProcessDefinitionResource
-
getStaticCalledProcessDefinitions
- Specified by:
getStaticCalledProcessDefinitions
in interfaceProcessDefinitionResource
-
restartProcessInstance
- Specified by:
restartProcessInstance
in interfaceProcessDefinitionResource
-
restartProcessInstanceAsync
- Specified by:
restartProcessInstanceAsync
in interfaceProcessDefinitionResource
-
getDeployedStartForm
public javax.ws.rs.core.Response getDeployedStartForm()- Specified by:
getDeployedStartForm
in interfaceProcessDefinitionResource
-
getStartFormMediaType
-