Changes between Version 24 and Version 25 of BluePrint/Messaging/Parsing
- Timestamp:
- 11/18/13 19:18:43 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
BluePrint/Messaging/Parsing
v24 v25 5 5 We need to parse inbound messages, with an initial focus being [wiki:BluePrint/Messaging#SMS SMS]. 6 6 7 We can test this with [http://www.clickatell.com/pricing/us_small_business.php Clickatell] or a local phone (the Clickatell Inbound SMS fu cntionality needs to be developed, which could be in-scope for this project).7 We can test this with [http://www.clickatell.com/pricing/us_small_business.php Clickatell] or a local phone (the Clickatell Inbound SMS functionality needs to be developed, which could be in-scope for this project). 8 8 9 9 == Where should the code live? == … … 19 19 * https://github.com/flavour/eden/blob/master/models/zzz_1st_run.py#L18 20 20 21 Before exiting those threads, it should trigger a new Sch duled task (once, now) to do the parsing.21 Before exiting those threads, it should trigger a new Scheduled task (once, now) to do the parsing. 22 22 23 23 All Parser Workflows should be defined in tasks.py. … … 76 76 2. Now, designing the details of the Workflow Y would be a developer task. 77 77 3. Whereas linking ‘Source X’ to ‘Workflow Y’ will be a configurable option. 78 4. So essentially,the Parser Table links Source to Workflow with any other required args & this acts like a Template for the sch duler_task table.78 4. So essentially,the Parser Table links Source to Workflow with any other required args & this acts like a Template for the scheduler_task table. 79 79 80 80 * Now, a task process_log() is defined in tasks.py , where the objective of process_log() is to scan through all the messages in msg_log; and process those for parsing which are flagged as unparsed (is_parsed=False).The task is scheduled in zzz_1st_run.py where it is chained to the concerned parsing task(this is achieved by the msg_workflow table, the ‘source_task_id’ field in msg_log will help retrieve the respective parsing workflow_task_id from msg_workflow).