To support our work with EDPub, we'd like "Collection Metadata" documents sent from EDPub to be temporarily quarantined in a state other than "Draft"; until a curator has a chance to review it.
This is accomplished by adding a new node to the workflow and a new query parameter to the createDocument endpoint: 'initialState'
The provided initialState must satisfy these conditions:
has to be a state in the model's workflow
has to be an INITIAL state (i.e. has an edge that connects to the "Init" node)
To Test
Backup your current "Edit-Publish-CMR" workflow JSON just in case
Use case
To support our work with EDPub, we'd like "Collection Metadata" documents sent from EDPub to be temporarily quarantined in a state other than "Draft"; until a curator has a chance to review it.
This is accomplished by adding a new node to the workflow and a new query parameter to the createDocument endpoint: 'initialState'
The provided initialState must satisfy these conditions:
To Test
(This part you may need help with, was a chore to figure out authentication via Postman)
/meditor/api/models/Collection Metadata/documents?initialState=From EarthdataPub
endpoint, note the initialState.