Is your feature request related to a problem? Please describe.
According to #3728, the KitodoScript "deleteProcess" exists in Kitodo.Production 3.x. It is possible to apply the script of Kitodo.Production 2.x, but some processes are not deleted correctly. The following has been observed.
If one or more superordinate processes which contain linked subordinate processes are deleted with the script the following messages occur:
Error deleting Process GeolSpdeK_1389382893
kitodoScript finished
Furthermore, there are the following consequences:
The process is not shown anymore in the process list, but not deleted in the index. Therefore, a new indexation is necessary.
The remaining subordinate processes cannot be deleted anymore via the user interface (script or button).
To Reproduce
Steps to reproduce the behavior:
Select several unnecessary processes with at least one superordinate process which contains linked subordinate processes in the process list
Click on 'Actions'
Click on "Execute KitodoScript"
Insert manually action:deleteProcess contentOnly:false in the text field 'Script'
Click on 'Execute KitodoScript'
See error message described above
Describe the solution you'd like
If one or more superordinate processes with linked subordinate processes are deleted with the script, the following should be applied:
The deletion of the superordinate process is aborted
The messages occur:
Error deleting Process: The process _GeolSpdeK1389382893 has subordinate processes and cannot be deleted
kitodoScript finished
If "usual" processes and superordinate processes with linked subordinate processes are deleted, the following should be applied:
The "usual" processes are deleted as expected
The deletion of the superordinate processes is aborted
The messages occur:
Error deleting Process: The process _GeolSpdeK1389382893 has subordinate processes and cannot be deleted
Is your feature request related to a problem? Please describe. According to #3728, the KitodoScript "deleteProcess" exists in Kitodo.Production 3.x. It is possible to apply the script of Kitodo.Production 2.x, but some processes are not deleted correctly. The following has been observed.
If one or more superordinate processes which contain linked subordinate processes are deleted with the script the following messages occur:
Furthermore, there are the following consequences:
To Reproduce Steps to reproduce the behavior:
action:deleteProcess contentOnly:false
in the text field 'Script'Describe the solution you'd like If one or more superordinate processes with linked subordinate processes are deleted with the script, the following should be applied:
If "usual" processes and superordinate processes with linked subordinate processes are deleted, the following should be applied:
Probably related issues
3448
3728
4582
4782
5120