Package org.flowable.form.api
Interface FormService
public interface FormService
- Author:
- Tijs Rademakers
-
Method Summary
Modifier and TypeMethodDescriptioncreateFormInstance(Map<String, Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) Store the submitted form values.createFormInstanceWithScopeId(Map<String, Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) voiddeleteFormInstance(String formInstanceId) voiddeleteFormInstancesByFormDefinition(String formDefinitionId) voiddeleteFormInstancesByProcessDefinition(String processDefinitionId) voiddeleteFormInstancesByScopeDefinition(String scopeDefinitionId) getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables) getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelById(String formInstanceId, Map<String, Object> variables) getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables) getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables) getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables) getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables) getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) byte[]getFormInstanceValues(String formInstanceId) getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables) getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables) getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String, Object> variables, String tenantId, boolean fallbackToDefaultTenant) getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String, Object> values, String outcome) saveFormInstance(Map<String, Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) saveFormInstanceByFormDefinitionId(Map<String, Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) saveFormInstanceWithScopeId(Map<String, Object> variables, String formDefinitionId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) saveFormInstanceWithScopeId(Map<String, Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome) voidvalidateFormFields(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String, Object> values) Apply validation restrictions on the submitted variables
-
Method Details
-
validateFormFields
void validateFormFields(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String, Object> values) Apply validation restrictions on the submitted variables- Parameters:
formInfo- form descriptionvalues- submitted variables- Throws:
FlowableException- in the case when validation failed
-
getVariablesFromFormSubmission
Map<String,Object> getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String, Object> values, String outcome) - Parameters:
formInfo- 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.- Returns:
- raw variables that can be used in the process engine, based on the filled in values and selected outcome.
-
createFormInstance
FormInstance createFormInstance(Map<String, Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome) Store the submitted form values.- Parameters:
formInfo- form instance of the submitted formtaskId- task instance id of the completed taskprocessInstanceId- process instance id of the completed taskvariables- json node with the values of the
-
saveFormInstance
-
saveFormInstanceByFormDefinitionId
-
createFormInstanceWithScopeId
-
saveFormInstanceWithScopeId
-
saveFormInstanceWithScopeId
-
getFormModelWithVariablesById
-
getFormModelWithVariablesById
-
getFormModelWithVariablesByKey
-
getFormModelWithVariablesByKey
-
getFormModelWithVariablesByKeyAndParentDeploymentId
-
getFormModelWithVariablesByKeyAndParentDeploymentId
-
getFormInstanceModelById
-
getFormInstanceModelById
-
getFormInstanceModelById
-
getFormInstanceModelByKey
-
getFormInstanceModelByKey
-
getFormInstanceModelByKeyAndParentDeploymentId
-
getFormInstanceModelByKeyAndParentDeploymentId
-
getFormInstanceModelByKeyAndScopeId
-
getFormInstanceModelByKeyAndScopeId
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
-
createFormInstanceQuery
FormInstanceQuery createFormInstanceQuery() -
getFormInstanceValues
-
deleteFormInstance
-
deleteFormInstancesByFormDefinition
-
deleteFormInstancesByProcessDefinition
-
deleteFormInstancesByScopeDefinition
-