Additional questions. What is actually deleted?
1. The case folder and any documents in it?
2.A. The process instances implementing activities, using internal process application?
2.B. The process instances implementing activities, using existing/external process application?
For our pure (non-BAW) case solutions with P8 workflows, we have a somewhat complicated nightly job deleting old, closed cases including workflows and documents ("everything"). We also have one new BAW solution complemented by an external process application (external, so that we can migrate instance between snapshots); this one is not yet included in the cleanup job. It would be very nice if there was an all-in-one REST operation. If not, I have an additional question.
4. For a case where the activities are implemented by external processes, should the process instances or the case be deleted first? I am unsure which of them keeps track of the relation.
------------------------------
Mattias Edling
------------------------------
Original Message:
Sent: Wed September 14, 2022 02:02 PM
From: Ramesh Bhat
Subject: Deleting a Case using new CASEREST API
Hi,
I've tried to delete a Case using new POST method in CASEREST API i.e., /CASEREST/v1/deletecase. Documentation can be found here > deleting a case. BAW version is 21.0.3 and attaching request body and response.
//Request body
{
"connectionpoint": "TOS_Default_ConnPt",
"casetype": "KYC1_KVK",
"caseid": "{20D13B83-0000-C816-9A2C-E6D9273CF3B6}",
"tos": "tos"
}
//Response
{
"errormessage": "Validation Error. Incorrect parameters for delete case. Either the name of casetype or the id of the case instance should be provided",
"deletecaseresult": "failed"
}
I appreciate if anybody test in your environment and let me know.
Regards,
Ramesh Bhat
------------------------------
Ramesh Bhat
------------------------------