Athento has an operation that allows calls to an external web service. This service will receive a JSON structure with the document's information, including lifecycle status, metadata, etc.
This operation is very useful when we need to notify other applications of the status of documents or their metadata values.
The following video shows how to use it:
The operation sends a JSON structure in the style shown below:
{
"ecm:uuid": "8a49d09c-cce9-4fa8-a1bf-094493360455",
"dc:title": "RS-24-000000000",
"dc:created": "2024-04-09 08:29:04.778549+02:00",
"dc:modified": "2024-04-11 13:12:36.222403+02:00",
"dc:creator": "xx@athento.com",
"dc:extension": ".pdf",
"file:filename": "e18cf51758f8013b5422fd570cc0f0be.pdf",
"ecm:space": {
"name": "Registro_salida",
"uuid": "f280a05c-5da3-4e68-9c90-804ae4d94d70"
},
"ecm:state": "finished",
"ecm:hash": "e18cf51758f8013b5422fd570cc0f0be",
"ecm:primaryType": "Registro de Salida",
"isTrashed": false,
"ecm:currentLifeCycleState": "Pendiente",
"metadata": {
"metadata.registro_de_salida_codigo": "RS-24-000000000",
"metadata.registro_de_salida_departamento": "Compras|Finanzas"
}
}
The target application only has to interpret this data and make use of it as needed.
Comments
0 comments
Please sign in to leave a comment.