-
Notifications
You must be signed in to change notification settings - Fork 0
PreProcessor
webbo89 edited this page Jun 21, 2012
·
2 revisions
Transfers results from agent & agentstate specific objects into a collection called results, with a record for each year, for each agent.
Call the file, processor.php?simid=X JSON output is expected from the result.
{"ISO":"CS7","success":"true","percentage":60,"totalAgents":"10","nextAgent":7}
Json array explained
- ISO: indicates the Agent that is currently in the process of being saved.
- success: false indicates a recall required/true means call the next page/complete means finished preprocessing.
- percentage: percentage completion of the preprocessor.
- totalAgents: indicates to preprocessor how many steps are required.(Done to minimise the number of queries and maximise time spent on useful DB processing)
- nextAgent: indicates the next step to be processed
How to use
- using JS, call the file, processor.php?simid=X
- use the JSON response to call the next step by a repeat JSON call to the file address: processor.php?simid=X&agent={nextAgent}&agentno={totalAgents}
- repeat until success:complete