Delete Content
This step plugin allows an automatic selective deletion of content from a process.
Introduction
The plugin is used to automatically delete data from a process. For this purpose, a configuration file can be used to define very granularly which data exactly should be deleted.
Overview
Details | |
---|---|
Identifier | intranda_step_deleteContent |
Source code | |
Licence | GPL 2.0 or newer |
Compatibility | Goobi workflow 2021.10 |
Documentation date | 05.12.2021 |
Installation
To install the plugin, the following file must be installed:
To configure how the plugin should behave, various values can be adjusted in the configuration file. The configuration file is usually located here:
Configuration of the plugin
The configuration of the plugin is structured as follows:
The block <config>
can occur repeatedly for different projects or workflow steps in order to be able to carry out different actions within different workflows. The other parameters within this configuration file have the following meanings:
Value | Description |
---|---|
| This parameter determines the project for which the current block |
| This parameter controls for which workflow steps the block |
| Specify whether to delete all data from the |
| Specify whether to delete the |
| Specify whether to delete the |
| Specify whether to delete the |
| Specify whether to delete the configured fallback folder. This option is not evaluated if |
| Specify whether to delete all data from the |
| Specify whether to delete all data from the |
| Specify whether to delete the |
| Specify here whether the |
| Specify whether to delete the |
| Specify whether to delete the |
| Specify whether to delete the |
| Specify whether to delete the |
| Specify whether to delete the |
| Specify whether to delete the folder where the files uploaded in the operation log are managed. |
| Specify here whether the metadata and associated backups should be deleted. |
| When this option is enabled, all steps of the process are disabled if they have not been completed previously. |
| Here a specific metadata can be deleted that is at the level of the work in the metadata file. The item is repeatable and must use a valid name for a metadata type from the rule set. |
| Here a specific operation property can be deleted., The element is repeatable and must list the name of the property. |
Integration of the plugin into the workflow
To use the plugin, it must be activated for one or more desired tasks in the workflow. This is done as shown in the following screenshot by selecting the plugin intranda_step_deleteContent
from the list of installed plugins.
Since this plugin is usually to be executed automatically, the step in the workflow should be configured as automatic.
How the plugin works
Once the plugin is fully installed and set up, it is usually executed automatically within the workflow, so there is no manual interaction with the user. Instead, the workflow calls the plugin in the background and starts the deletion of the configured data. In doing so, the configured folders and data are deleted, if they exist. Data that does not exist will be skipped. If it has been configured that the process is to be deactivated, all workflow steps are run through and checked whether they have already been closed regularly within the workflow. If this is not the case, the steps are deactivated.
When the deletion is complete, a message is added to the process log to inform you that this plugin has been called and the data was deleted.
Last updated