Unable to update workflow extension definition for seemingly no reason
In one of our apps we are using a workflow extension definition. We are trying to update the name of this workflow extension definition. We are finding there to be a few different issues while trying to update the definition.
The main issue is that we seem to be unable to update this workflow definition anymore. If we try to update it with the payload shown below, where we set some fields to be required:
{
"status": "error",
"message": "There was a problem with the request.",
"correlationId": "e9d63452-3860-46e9-8f7a-85152a6f9e69"
}
When we try the same request, but with the field ‘required’ set to ‘false’, then the update comes through, however this is not the behavior we want as some of these fields are mandatory.
Another interesting issue with the request above, is that in ‘fieldMetadata’, we have a field named 'disclaimer'. However, we get the same error as above if in our update request we use ‘disclaimer’ as the name. However, when we change the name of that field to ‘disclaimernew’ or anything else AND we set ‘required’: false, then the update comes through.
The request below is an example of a a request where the update is done successfully:
Otherwise, not. Interestingly, these issues only appear when we try to update this specific workflow definition. For the sake of testing and debuggin, we have created a new definition, there we are able to update the workflow definition successfully. However, when performing the exact same request that works with the 'new' workflow extension on the 'old' one (using a different extensionName to avoid duplicate name error), the request will again fail with status code 409 and the error shown above.
Using the new workflow definition would not be easy, as it would mean all workflows already existing that rely on the ‘old’ definition would no longer work.
Unable to update workflow extension definition for seemingly no reason
Hi @Jaycee_Lewis thanks for your reply, however I am not trying to add new fields to the workflow extension. Even when keeping the initial required fields to 'required = true', the error occurs and makes it unable to do any other updates to the workflow extension
Unable to update workflow extension definition for seemingly no reason
Hey, @MaximeEsnol👋 To confirm, you are not missing anything. When updating, you have to set it to the required field to = false. This post and reply give additional details — Can't add new required fields