Stream: dev

Topic: send message to author on return


view this post on Zulip Juan L贸pez (Aug 12 2024 at 20:48):

Hi! I'm trying to set a step in my workflow to let the Curator of a dataset, send a message to the author when they return the dataset in question. So far I've used this workflow.json:

{
"name": "Internal steps with pause",
"steps": [
{
"provider":":internal",
"stepType":"log",
"parameters": {
"step":1,
"stepName":"first step"
}
},
{
"provider":":internal",
"stepType":"pause/message",
"parameters": {
"paramName":"parameter value with a longer name."
}
},
{
"provider":":internal",
"stepType":"log",
"parameters": {
"number":42,
"anotherMessage": "This is the last step before releasing."
}
}
]
}

I've set the workflow with this:  curl -X PUT -H "Content-Type: application/json" --upload-file workflow.json  https://papyrus-datos.co/api/admin/workflows

And then assigned that workflow to "PrePublishDataset" like this: curl -X PUT -d 1 http://localhost:8080/api/admin/workflows/default/PrePublishDataset

When I do a  "curl http://localhost:8080/api/admin/workflows/default" I get the following: {"status":"OK","data":{"PrePublishDataset":{"id":1,"name":"Internal steps with pause"},"PostPublishDataset":null}}

But when I'm trying to return the dataset to the author... Dataverse doesn't show the modal with the message textbox:
image.png

Can anyone help me a little bit? What am I doing wrong?

view this post on Zulip Philip Durbin 馃殌 (Aug 12 2024 at 21:03):

@Juan L贸pez what version of Dataverse are you running? If you upgrade to 6.2, this feature is included.

Please see "When Returning Datasets to Authors, Reviewers Can Add a Note to the Author" at https://github.com/IQSS/dataverse/releases/tag/v6.2

view this post on Zulip Juan L贸pez (Aug 12 2024 at 21:06):

@Philip Durbin Hi Philip... I'm running Dataverse 6.0. Is upgrading to 6.2 the only way to have this feature?

view this post on Zulip Philip Durbin 馃殌 (Aug 12 2024 at 21:10):

Well, with 6.0 your curators can send a message via API. See reasonForReturn at https://guides.dataverse.org/en/6.0/api/native-api.html#return-a-dataset-to-author

view this post on Zulip Juan L贸pez (Aug 12 2024 at 21:28):

Ok... that works! Thank you Philip


Last updated: Nov 01 2025 at 14:11 UTC