How can CallVirusCheck get its caller context?
My customer would like to restrict case attachments to Excel spreadsheets only.
There is an extension activity Data-WorkAttachFile.CallVirusCheck that is intended to be saved into the application ruleset and extended with custom checks e.g. checking for viruses. We could implement the customer requirement by placing a check on the file extension in this activity - simple.
However CallVirusCheck is called in many contexts: including uploading image files to profile, uploading files to Pega Pulse, etc. It is very general. The customer only wants to restrict to Excel in situation of case attachments.
How can CallVirusCheck know from where it was called?