Inspired by the guidance of the whitepaper "The Proper Way to Attach Files in K2 InfoPath processes" I have an InfoPath form with a rule on the submit button to upload my files to a K2 SmartBox SmartObject. In order for it to be effective, the relevant upload action has to execute before the submit action.
This works great in theory, but what I'm finding is that this rule runs even before form validation is checked. That means files are being uploaded to the SmartBox and then the form fails to submit because, for example, a required field was not populated.
Is there someway I can force my InfoPath form to do all the validation checking and what not before my upload action takes place?
I'm hoping that's the purpose of the "Can I Submit Workflow Service" but haven't been able to find any documentation about how it works.
Or if not, can anyone suggest some solution or workaround to this?