Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow subsequent changes to workflows #4840

Open
2 tasks
matthias-ronge opened this issue Nov 26, 2021 · 5 comments
Open
2 tasks

Allow subsequent changes to workflows #4840

matthias-ronge opened this issue Nov 26, 2021 · 5 comments
Labels
development fund 2022 A candidate for the Kitodo e.V. development fund. feature

Comments

@matthias-ronge
Copy link
Collaborator

Description

In Production 3, workflows were introduced. A production template with tasks is generated from the workflow, from which processes are generated, while the tasks are copied into the individual processes. These copies are technically necessary to record the status of the individual tasks in the process (for example, the status of correction tasks). If you were to change a workflow afterwards, the tasks of the processes would not be aligned, so it is not possible to change workflows afterwards.

It is desirable to be able to change workflows afterwards. There are a number of reasons for this:

  • small adjustments to script parameters
  • adding roles from another tenant
  • subsequent insertion of a task
    • this can also be at the end for completed processes, for example adding an archiving

This should result in a change in the tasks of the production templates, and tasks in the processes should be adapted. This can be a long-running task when many processes are affected.

To do

  • Conception phase: Which changes to the workflow are allowed? In which state should processes be after the change, depending on their state before the change? Possible permitted changes could be:

    • change the parameters of an existing task
    • insert a new task at the beginning or linearly between two existing tasks
    • insert a new task linearly at the end. If it is an automatic task, it should also be started for processes that have already been completed. That can be very many.
    • delete a task. What happens if users in processes are currently working on this task?
    • change the order of tasks. What happens here with processes in the correction run if the target task of the correction (where the correction was requested) now precedes the task that is supposed to carry out the correction?
    • do several tasks in parallel that were previously organized differently. In which status do processes have to be set in which these tasks are currently being processed?
    • any changes? If not, how do you distinguish programmatically between allowed and not allowed changes, and how is the user guided here?
  • Implementation of the desired changes.

@matthias-ronge matthias-ronge added feature 3.x development fund 2021 A candidate for the Kitodo e.V. development fund. labels Nov 26, 2021
@stroetgen
Copy link

this should be a project for the development fund in 2022

@stefanCCS
Copy link
Collaborator

I personally like this feature, but I also understand, that this is not an easy one.
In my opinion the "Conception phase" is the critical one and should be done with most care as possible.
Even, if I am not in the evelopment team, in my opinion there is a high effort needed to do this.

@m-kotzyba
Copy link
Collaborator

This issues was dicussed often and is still wanted by several institutons.
Can you pls give it the label: "development fund 2022"

@matthias-ronge matthias-ronge added development fund 2022 A candidate for the Kitodo e.V. development fund. and removed development fund 2021 A candidate for the Kitodo e.V. development fund. labels Feb 21, 2022
@solth solth removed the 3.x label Jul 7, 2022
@BartChris
Copy link
Collaborator

I opened a discussion here: #5351

@BartChris
Copy link
Collaborator

I tried to summarize different aspects discussed in the community meeting in a Github discussion: #5418

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
development fund 2022 A candidate for the Kitodo e.V. development fund. feature
Projects
None yet
Development

No branches or pull requests

6 participants