public interface FormService
| Modifier and Type | Method and Description |
|---|---|
FormInstance |
createFormInstance(Map<String,Object> variables,
FormInfo formInfo,
String taskId,
String processInstanceId,
String processDefinitionId,
String tenantId,
String outcome)
Store the submitted form values.
|
FormInstanceQuery |
createFormInstanceQuery() |
FormInstance |
createFormInstanceWithScopeId(Map<String,Object> variables,
FormInfo formInfo,
String taskId,
String scopeId,
String scopeType,
String scopeDefinitionId,
String tenantId,
String outcome) |
void |
deleteFormInstance(String formInstanceId) |
void |
deleteFormInstancesByFormDefinition(String formDefinitionId) |
void |
deleteFormInstancesByProcessDefinition(String processDefinitionId) |
void |
deleteFormInstancesByScopeDefinition(String scopeDefinitionId) |
FormInstanceInfo |
getFormInstanceModelById(String formInstanceId,
Map<String,Object> variables) |
FormInstanceInfo |
getFormInstanceModelById(String formDefinitionId,
String taskId,
String processInstanceId,
Map<String,Object> variables) |
FormInstanceInfo |
getFormInstanceModelById(String formDefinitionId,
String taskId,
String processInstanceId,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
FormInstanceInfo |
getFormInstanceModelByKey(String formDefinitionKey,
String taskId,
String processInstanceId,
Map<String,Object> variables) |
FormInstanceInfo |
getFormInstanceModelByKey(String formDefinitionKey,
String taskId,
String processInstanceId,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
FormInstanceInfo |
getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey,
String parentDeploymentId,
String taskId,
String processInstanceId,
Map<String,Object> variables) |
FormInstanceInfo |
getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey,
String parentDeploymentId,
String taskId,
String processInstanceId,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
FormInstanceInfo |
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey,
String parentDeploymentId,
String scopeId,
String scopeType,
Map<String,Object> variables) |
FormInstanceInfo |
getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey,
String parentDeploymentId,
String scopeId,
String scopeType,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
FormInstanceInfo |
getFormInstanceModelByKeyAndScopeId(String formDefinitionKey,
String scopeId,
String scopeType,
Map<String,Object> variables) |
FormInstanceInfo |
getFormInstanceModelByKeyAndScopeId(String formDefinitionKey,
String scopeId,
String scopeType,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
byte[] |
getFormInstanceValues(String formInstanceId) |
FormInfo |
getFormModelWithVariablesById(String formDefinitionId,
String taskId,
Map<String,Object> variables) |
FormInfo |
getFormModelWithVariablesById(String formDefinitionId,
String taskId,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
FormInfo |
getFormModelWithVariablesByKey(String formDefinitionKey,
String taskId,
Map<String,Object> variables) |
FormInfo |
getFormModelWithVariablesByKey(String formDefinitionKey,
String taskId,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
FormInfo |
getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey,
String parentDeploymentId,
String taskId,
Map<String,Object> variables) |
FormInfo |
getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey,
String parentDeploymentId,
String taskId,
Map<String,Object> variables,
String tenantId,
boolean fallbackToDefaultTenant) |
Map<String,Object> |
getVariablesFromFormSubmission(FormInfo formInfo,
Map<String,Object> values,
String outcome) |
FormInstance |
saveFormInstance(Map<String,Object> variables,
FormInfo formInfo,
String taskId,
String processInstanceId,
String processDefinitionId,
String tenantId,
String outcome) |
FormInstance |
saveFormInstanceByFormDefinitionId(Map<String,Object> variables,
String formDefinitionId,
String taskId,
String processInstanceId,
String processDefinitionId,
String tenantId,
String outcome) |
FormInstance |
saveFormInstanceWithScopeId(Map<String,Object> variables,
FormInfo formInfo,
String taskId,
String scopeId,
String scopeType,
String scopeDefinitionId,
String tenantId,
String outcome) |
FormInstance |
saveFormInstanceWithScopeId(Map<String,Object> variables,
String formDefinitionId,
String taskId,
String scopeId,
String scopeType,
String scopeDefinitionId,
String tenantId,
String outcome) |
void |
validateFormFields(FormInfo formInfo,
Map<String,Object> values)
Apply validation restrictions on the submitted variables
|
void validateFormFields(FormInfo formInfo, Map<String,Object> values)
formInfo - form descriptionvalues - submitted variablesFlowableException - in the case when validation failedMap<String,Object> getVariablesFromFormSubmission(FormInfo formInfo, Map<String,Object> values, String outcome)
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.FormInstance createFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
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 theFormInstance saveFormInstance(Map<String,Object> variables, FormInfo formInfo, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
FormInstance saveFormInstanceByFormDefinitionId(Map<String,Object> variables, String formDefinitionId, String taskId, String processInstanceId, String processDefinitionId, String tenantId, String outcome)
FormInstance createFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, FormInfo formInfo, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
FormInstance saveFormInstanceWithScopeId(Map<String,Object> variables, String formDefinitionId, String taskId, String scopeId, String scopeType, String scopeDefinitionId, String tenantId, String outcome)
FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables)
FormInfo getFormModelWithVariablesById(String formDefinitionId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables)
FormInfo getFormModelWithVariablesByKey(String formDefinitionKey, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables)
FormInfo getFormModelWithVariablesByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInstanceInfo getFormInstanceModelById(String formInstanceId, Map<String,Object> variables)
FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables)
FormInstanceInfo getFormInstanceModelById(String formDefinitionId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables)
FormInstanceInfo getFormInstanceModelByKey(String formDefinitionKey, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables)
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentId(String formDefinitionKey, String parentDeploymentId, String taskId, String processInstanceId, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables)
FormInstanceInfo getFormInstanceModelByKeyAndScopeId(String formDefinitionKey, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables)
FormInstanceInfo getFormInstanceModelByKeyAndParentDeploymentIdAndScopeId(String formDefinitionKey, String parentDeploymentId, String scopeId, String scopeType, Map<String,Object> variables, String tenantId, boolean fallbackToDefaultTenant)
FormInstanceQuery createFormInstanceQuery()
byte[] getFormInstanceValues(String formInstanceId)
void deleteFormInstance(String formInstanceId)
void deleteFormInstancesByFormDefinition(String formDefinitionId)
void deleteFormInstancesByProcessDefinition(String processDefinitionId)
void deleteFormInstancesByScopeDefinition(String scopeDefinitionId)
Copyright © 2022 Flowable. All rights reserved.