I've found that with the default workflows, if you duplicate an event, and then you try to publish this event, the new task doesn't get the same parameters as the original.
Steps to reproduce
Ingest a new event and publish it
duplicate the event
In the original and the duplicate the event start a new task for each (Ex: republish an edited video)
In the workflow instance, the duplicate event has fewer parameters than the original counterpart.
This causes, for example, that the task fails in the duplicated event because it doesn't have the variable to trigger the compose WoH. Also, there is a loss of data, the duplicated event lost the media assets.
The attached files show the same process triggered in the editor for the two events, the little one is from the duplicated event.
Tried in stable.opencast.org and in legacy.opencast.org
Good news: That can be fixed easily by replacing the line https://github.com/opencast/opencast/blob/develop/etc/workflows/duplicate-event.xml#L54 by
whereas org.opencastproject.workflow.configuration is the namespace of the asset manager properties used to store workflow configuration properties.
Thanks Sven I will try and then to the PR