public interface FormProcessingService
Modifier and Type | Method and Description |
---|---|
List<com.activiti.domain.runtime.Form> |
getAllForms(String processDefinitionId) |
Map<String,ProcessInstanceVariableRepresentation> |
getProcessInstanceVariables(HistoricTaskInstance task) |
com.activiti.domain.runtime.Form |
getStartForm(String processDefinitionId) |
FormDefinitionRepresentation |
getStartFormDefinition(String processInstanceId) |
com.activiti.domain.runtime.Form |
getTaskForm(String taskId) |
FormDefinitionRepresentation |
getTaskFormDefinition(HistoricTaskInstance task) |
SubmittedFormVariables |
getVariablesFromFormSubmission(com.activiti.domain.runtime.Form form,
FormDefinitionRepresentation definition,
Map<String,Object> values,
String outcome,
com.fasterxml.jackson.databind.node.ObjectNode submittedFormValuesJson) |
void |
storeSubmittedForm(com.activiti.domain.runtime.Form form,
String taskId,
String processInstanceId,
com.fasterxml.jackson.databind.JsonNode valuesNode)
Store the submitted form values.
|
com.activiti.domain.runtime.Form getTaskForm(String taskId)
FormDefinitionRepresentation getTaskFormDefinition(HistoricTaskInstance task)
FormDefinitionRepresentation getStartFormDefinition(String processInstanceId)
com.activiti.domain.runtime.Form getStartForm(String processDefinitionId)
ActivitiObjectNotFoundException
- When no process definition exists with the given id.List<com.activiti.domain.runtime.Form> getAllForms(String processDefinitionId)
SubmittedFormVariables getVariablesFromFormSubmission(com.activiti.domain.runtime.Form form, FormDefinitionRepresentation definition, Map<String,Object> values, String outcome, com.fasterxml.jackson.databind.node.ObjectNode submittedFormValuesJson)
definition
- form definition to use for type-conversion and validationvalues
- values submitted by the useroutcome
- outcome selected by the user. If null, no outcome is used and any outcome definitions are ignored.submittedFormValuesJson
- json node to fill with submitted form field valuesRelatedContent
objects that are added for each variable/field.com.activiti.exception.FormValidationException
- when a submitted value is not valid or a required value is missing.void storeSubmittedForm(com.activiti.domain.runtime.Form form, String taskId, String processInstanceId, com.fasterxml.jackson.databind.JsonNode valuesNode)
form
- form instance of the submitted formtaskId
- task instance id of the completed taskprocessInstanceId
- process instance id of the completed taskvaluesNode
- json node with the values of theMap<String,ProcessInstanceVariableRepresentation> getProcessInstanceVariables(HistoricTaskInstance task)
HistoricTaskInstance
Copyright © 2014–2015 Alfresco. All rights reserved.