public interface IPluginFormPrePersist extends IFCPlugin
FormEingang
is created and the form data is saved to the database. Contrast this with a plugin of type
IPluginFormPreProcess
, which is run after a FormEingang
was created; and to
IPluginFormPreRespond
, which is run after the workflow was processed as well.
This plugin offers the option to add an custom check whether the form submission should be prevented or not. When this plugin prevents the form submission, the submitted form data is discarded and no form record is created. The workflow is then not run either.
CONFIG_FILENAME
ATTR_NAME, COL_NAME
ATTR_DISPLAY_NAME
Modifier and Type | Method and Description |
---|---|
IPluginFormPrePersistRetVal |
execute(IPluginFormPrePersistParams params)
The main method of this plugin.
|
getDescription, getDescription, getDisplayName, getName, initialize, initPlugin, install, shutdown, shutdown, uninstall
IPluginFormPrePersistRetVal execute(IPluginFormPrePersistParams params) throws FCPluginException
When any exception other than FCPluginException
is thrown, the form will not be persisted and a general
error template is returned to the user who submitted the form.
params
- The parameters this plugin may make use of. Contains the current form request context that may be
used to access the submitted form data.FCPluginException
- May be thrown when this plugin cannot perform its task due to any reason. If this
exception is thrown, the form will still be persisted.Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.