I have a batch task to apply to a file but I only want it to apply to a specific set of file types. If the user attempts to configure the settings in a manner that is not applicable to the file type they are running the batch task on I would like to stop them before they hit the 'finish' button.
If I try to run and code on the TaskSettingControl page that attempts to access ProjectFile settings (ProjectFile _projectFile in TaskFiles) I will get an error that 'Object reference not set to an instance of an object '. This same code will work fine once I am into the 'Execute' phase of the Batch Task Plugin (after hitting the finish button).
Is there any way to 'know' the file selected for the Batch Task at the Settings UI page?