Scheduling Reports: More than Fire and Forget
Moving beyond Scheduling Reports to Orchestrating Them
Scheduling reports is a common use case for job schedulers. Often such scheduling is initially envisioned as a simple matter of setting a timer to fire off a report at a given time. In such cases available open source projects and even Windows Task Scheduler is used. But this simplistic approach is often overwhelmed once the true requirements are better understood. A more realistic set of report scheduling requirements would include, for example:
- User can specify a specific schedule to run their reports.
- Schedules may vary in the kind of reports run, and the parameters passed to the report creation software.
- User can specify a set of dependencies that must be satisfied before running their reports. An example dependency may include associating a point in time with a database status with the availability of files before a report can be run.
- User can specify error situations associated with report execution that require forwarding to IT staff for resolution. In some instances user can define exception handling processes need to be initiated automatically.
- User defines status and tracking metrics for report execution, success and failure.
- Service level agreements are specified and associated with the reporting process.
- Report execution may need to be assigned to a specific reporting server or node where the required resources are available for processing.
As can be seen from the above, a more complete set of requirements for report scheduling starts to justify the need for some comprehensive workflow management. As opposed to scheduling, workflow management addresses job dependencies, externally-supplied events such as incoming messages or ile availability, time based events, error handling, and monitoring.
Many reporting software packages provide scheduler functionality but often their scheduler is limited in functionality and flexibility. Such report-vendor provided schedulers often address items 1 and 2 above, but leave the other requirements unsatisfied. Items 3 through 7 are addressed via workflow and file orchestration, capabilities generally not provided by the reporting vendor.
Flux supports reporting within the context of workflow. Flux supports schedules not only based on time, but also on database conditions, the existence of files, the arrival of incoming web service messages and mail messages, the state of other workflows, and other channels, all within the context of an overall workflow.
Workflows containing reports can be very complex. For instance, many financial institutions utilize their workflow engines to control generating reports within the overall context of their payments processing. These workflows tend to be large, configurable, and contain many dependencies and control points that trigger the creation of a variety of reports. One flow in one of these larger workflows may initiate a file transfer of a payment file into the institution, validate the file, output a report of errors and omissions, trigger a reject and correction process, dynamically configure a set of customer specific processing parameters and merge those with general processing rules from a configuration database, archive the corrected file to a document archive, and initiate payment reporting and downstream audit and compliance processes. Status is messaged and emailed to the institution’s customer and internal operations staff throughout the entire process.
The general approach to such systems requires a design where a workflow engine acts as the system orchestrator. External components message the workflow engine via files, web services, database contents, and the workflow engine’s API. The workflow engine itself messages and directs external components, such as a reporting system, via that component’s command line, or web API, or a vendor-provided API. A number of workflow engines can easily wrap a reporting vendor’s Java or web API to orchestrate report generation within the context of the larger workflow. Many reporting vendors recognize their scheduling limits and provide APIs that allow external workflow engines to direct the report execution in the context of a more complete workflow perspective.
Such report-vendor-provided reporting APIs generally provide for facilities to:
- Configure a report dynamically.
- Configure a predefined report template with workflow-supplied parameters.
- Submit a report for execution.
- Get status updates on the report’s execution status.
- Format the report into some format (e.g., PDF or CSV)
- Distribute the report via email, SFTP, or some other distribution mechanism.
Using these APIs in conjunction with a workflow engine provides the ability to provide sophisticated and dynamic reporting capabilities within business process workflows. As the workflow progresses, for instance,
- It can collect and configure parameters that will reports specific to the information available at the time. Before and after snapshots of information are such an example. Parameters would include (but is not limited to) report selection, date ranges, distribution lists, and the schedule on which the report should run.
- Information collected from a report can actually be injected back into the workflow, driving complex workflows through multiple paths. This surfaces when the report is performing data analysis, and the workflow may need to recurse through portions of the workflow to get to a recommendation or other decision.
- The workflow can ensure that required dependencies are met before executing the report. “End of Financial Period” frequently involves dependencies that include a specific date, set of timers, and a job dependency graph that ensures all needed reports and predecessor processing are complete before the specific report is generated to ensure consistent and complete data is available to the report.
- Customer develops a client facing web form, MQ message, or email structure that allows a customer’s client to specify the needed parameters and pass them to to the workflow engine using workflow engine’s API set. Using web forms, for example, can readily access Flux’s REST API to pass requirement parameters to the Flux engine.
- Data can be extracted, moved, or translated in preparation for report creation. In some cases images may need to be transcoded, needed data collected and centralized, or database extracts performed.
- Finally, report jobs are configured for execution on specific nodes in effect ‘pinning’ them to the resources they require for processing. Flux’s workflow organization allows configuring unique execution requirements based on the ‘namespace’ the workflow executes within. A namespace can be any organizing structure, such as client, department, month, or business event. The same generic report workflow can be deployed to many namespaces where each name space has its own unique and specific configuration.
Generating reports in the context of a comprehensive workflow provides needed context to ensure report data is timely, accurate, and complete. Using a fire and forget approach, while satisfying the need to create reports, may not necessarily be an effective or efficient approach at getting needed information to your clients in a manner that will satisfy them.
Flux’s workflow and scheduling features extend enterprise reporting platforms with automated scheduling, workflow dependencies, and automated error recovery and exception handling. As such, Flux offers a platform-agnostic means to integrate reports into an enterprise’s processing flows.
Flux assists enterprises in provisioning, onboarding, scheduling, tracking, and reporting an enterprise’s file orchestration processes. These orchestrations vary from simple file transfers to highly complex workflows involving extensive processing, many routes, varied alerts, and complex decisioning. First released in 2000, Flux has grown into a file orchestration and workflow scheduling platform that enterprises rely on daily for their mission critical systems.
Contact sales at: firstname.lastname@example.org
For further information browse: flux.ly