Changes between Version 24 and Version 25 of BluePrint/Messaging/Parsing


Ignore:
Timestamp:
11/18/13 19:18:43 (8 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • BluePrint/Messaging/Parsing

    v24 v25  
    55We need to parse inbound messages, with an initial focus being [wiki:BluePrint/Messaging#SMS SMS].
    66
    7 We can test this with [http://www.clickatell.com/pricing/us_small_business.php Clickatell] or a local phone (the Clickatell Inbound SMS fucntionality needs to be developed, which could be in-scope for this project).
     7We 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).
    88
    99== Where should the code live? ==
     
    1919* https://github.com/flavour/eden/blob/master/models/zzz_1st_run.py#L18
    2020
    21 Before exiting those threads, it should trigger a new Schduled task (once, now) to do the parsing.
     21Before exiting those threads, it should trigger a new Scheduled task (once, now) to do the parsing.
    2222
    2323All Parser Workflows should be defined in tasks.py.
     
    76762. Now, designing the details of the Workflow Y would be a developer task.
    77773. 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 schduler_task table.
     784. So essentially,the Parser Table links Source to Workflow with any other required args & this acts like a Template for the scheduler_task table.
    7979
    8080* 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).