I see. For this kind of use, I would recommend that you implement an AJAX call from both the Designer and the DataMapper, pointing to a Workflow process. You would send progress data through a very simple URL, like in the following examples:
Obviously, you could add other pertinent parameters in there, like a timestamp, the name of the Template, etc.
Your Workflow process would be very simple: receive the data through a NodeJS Server Input and, depending on the value of the
module parameter, write the
completion value to the appropriate file.
There are three main advantages of doing things this way:
- The DataMapper and the Content Creation engines no longer have to write files, which can have an impact on performance. Instead, creating and writing files is the responsibility of Workflow, which can be located on the same system or a different machine altogether.
- Using AJAX requests can be done asynchronously: you just send the request without waiting for an answer. This again eliminates any potential latency while you’re actually processing the jobs.
- It centralizes the progress monitoring inside a Workflow process. You can simply add AJAX calls to any template and/or data mapping config and that’s it: you can monitor their progress.
Hope that helps,