Business Service that Accepts Optional Properties, Executes Once on Enable/Start, and Resets after OnProcessInput()
I have a number of services that call SQL stored procedures and map their result sets to Record Map Batch objects. The stored procedures take optional start and end date parameters, but default to the prior day for their daily run.
Because the database they're running against is an asynchronously updated data repository for an EHR, there are times where the stored procedures will not capture all the data that should have been there and we need to re-execute the stored proc with a specific date (and sometimes time) range.
An option I've been considering is the inclusion of properties in the service class that support setting a date/time range, but ideally I would want those properties to "reset" to defaults (which could potentially be System Defaults aka SDS) after the service completes a one-time processing cycle and re-enable for normal operation.
Ideally this would all be handled within the Production editor/view (vs. Task Manager or custom web UI) so that operations staff would be able to handle it within the confines of their limited access to IRIS interoperability functions only.
I'm not averse to experimentation to see what I can come up with, but was wondering if anyone has tackled something similar.