Reprocessing statements for statement forwards (enterprise only)
Useful for when we need to reprocess statements for a statement forward in support cases. Ensure statement forward is re-enabled if not already before reprocessing statements.
Check after the requeue, the statement forward document’s reprocessingStatus as well as the completedForwardingLog on the statements to confirm requeue is successful.
Usage
Through the API (available in SDC enterprise from 13.32.0)
You will need the statement forward ID (copyable from UI, using the copy button next to the title).
Count the number of missing statements by sending GET request to
https://{SDC_BASE_URL}/api/statementforwarding/reprocess/{STATEMENT_FORWARD_ID}/count
Response should be 200, SF’s reprocessingStatus's status field should be "COUNT FINISHED" and the missedStatementCount should be populated.Search the number of missing statements by sending GET request to
https://{SDC_BASE_URL}/api/statementforwarding/reprocess/{STATEMENT_FORWARD_ID}/search
Response should be 200, SF's reprocessingStatus's status should be "SEARCH_FINISHED", the searchResultCount, firstSearchResults and the lastSearchResults should be populated.Requeue the number of missing statements by sending GET request to
https://{SDC_BASE_URL}/api/statementforwarding/reprocess/{STATEMENT_FORWARD_ID}/forward
Response should be 200, SF's reprocessingStatus's status should be "FINISHED", the forwardedCount indicates how many have been successfully requeued.Cancel reprocessing by sending POST request to
https://{SDC_BASE_URL}/api/statementforwarding/reprocess/{STATEMENT_FORWARD_ID}/cancel
Response should be 200, SF's reprocessingStatus's status should be "CANCELLED".If the reprocessingStatus is
FORWARDING
orSEARCHING
, reprocessing can be paused by sending POST request tohttps://{SDC_BASE_URL}/api/statementforwarding/reprocess/{STATEMENT_FORWARD_ID}/pause
Response should be 200, SF's reprocessingStatus's status should be "FORWARDING_PAUSED" or “SEARCHING_PAUSED”.
Troubleshooting (TODO)
Through the UI (available to site admins only)
What is a Missed Statement
A statement is matched in the search stage if it meets the following criteria:
Matches the SFs filter
Statement’s
stored
time is after thecreatedAt
time of the SFStatement hasn’t been forwarded by this SF (
completedForwardingQueue
doesn’t include the SF’s_id
)Statement is not currently awaiting forwarding for this SF (
pendingForwardingQueue
doesn’t include the SF’s_id
)Statement isn’t still in one of the forwarding queues (
processingQueues
doesn’t includeSTATEMENT_FORWARDING_QUEUE
orSTATEMENT_FORWARDING_PERSONA_DEPENDENT_QUEUE)
Organisation of statement and SF are the same
Essentially statements that would have been forwarded if the SF was active and no errors occur
Learning Locker and the Squirrel logo are trademark of Learning Pool 2020 | Learning Locker is licensed under GPL 3.0.