Package org.flowable.form.api
Interface FormService
-
public interface FormService- Author:
- Tijs Rademakers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FormInstancecreateFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)Store the submitted form values.FormInstanceQuerycreateFormInstanceQuery()FormInstancecreateFormInstanceWithScopeId(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)FormInstanceInfogetFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelById(String formInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInstanceInfogetFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables)FormInstanceInfogetFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)byte[]getFormInstanceValues(String formInstanceId)FormInfogetFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables)FormInfogetFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInfogetFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables)FormInfogetFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)FormInfogetFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables)FormInfogetFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)Map<String,Object>getVariablesFromFormSubmission(String elementId, String elementType, String scopeId, String scopeDefinitionId, String scopeType, FormInfo formInfo, Map<String,Object> values, String outcome)FormInstancesaveFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)FormInstancesaveFormInstanceByFormDefinitionId(Map<String,Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)FormInstancesaveFormInstanceWithScopeId(Map<String,Object> variables, String formDefinitionId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)FormInstancesaveFormInstanceWithScopeId(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 Detail
-
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
FormInstance saveFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
-
saveFormInstanceByFormDefinitionId
FormInstance saveFormInstanceByFormDefinitionId(Map<String,Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
-
createFormInstanceWithScopeId
FormInstance createFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
-
saveFormInstanceWithScopeId
FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
-
saveFormInstanceWithScopeId
FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, String formDefinitionId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
-
getFormModelWithVariablesById
FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables)
-
getFormModelWithVariablesById
FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
getFormModelWithVariablesByKey
FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables)
-
getFormModelWithVariablesByKey
FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
getFormModelWithVariablesByKeyAndParentDeploymentId
FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables)
-
getFormModelWithVariablesByKeyAndParentDeploymentId
FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
getFormInstanceModelById
FormInstanceInfo getFormInstanceModelById(String formInstanceId, Map<String,Object> variables)
-
getFormInstanceModelById
FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables)
-
getFormInstanceModelById
FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
getFormInstanceModelByKey
FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables)
-
getFormInstanceModelByKey
FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
getFormInstanceModelByKeyAndParentDeploymentId
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables)
-
getFormInstanceModelByKeyAndParentDeploymentId
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
getFormInstanceModelByKeyAndScopeId
FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables)
-
getFormInstanceModelByKeyAndScopeId
FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables)
-
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
-
createFormInstanceQuery
FormInstanceQuery createFormInstanceQuery()
-
getFormInstanceValues
byte[] getFormInstanceValues(String formInstanceId)
-
deleteFormInstance
void deleteFormInstance(String formInstanceId)
-
deleteFormInstancesByFormDefinition
void deleteFormInstancesByFormDefinition(String formDefinitionId)
-
deleteFormInstancesByProcessDefinition
void deleteFormInstancesByProcessDefinition(String processDefinitionId)
-
deleteFormInstancesByScopeDefinition
void deleteFormInstancesByScopeDefinition(String scopeDefinitionId)
-
-