TAO
                              APIs
Tao Days 2011, Mar 30-31, Luxembourg

              bertrand.chevrier@tudor.lu
                  cedric.alfonsi@tudor.lu
Conclusion
Introduction




   •Away to address a large panel of needs
   •Help the community build TAO tools
   •Help the developments
       –Afront interface
       –Advanced tasks without all development knowledge

   •Openness to      other platforms
Conclusion
Introduction
Intro
     APIs Overview




Conclusion
Conclusion
           APIs Overview
Intro




                   TAO I/O                       Custom I/O
             getSubjectName(),               setUserVar(”try”, 3)
                setScore(14)



                                Backend Setup
                           initPush(”http://sever.com”)




              Event logging                       Item State
        logCustomEvent(”correct”,”test”)            finish()
Conclusion
            APIs Overview
Intro




                      Client Side                   Server Side

        Javascript API                   Javascript + PHP APIs


        Portability                      Security


        Integration to TAO through the   Integration with any server side
        Item Runtime API                 back-end

                                         PHP Scoring Api provided with TAO
Conclusion
          APIs Overview
Intro




        Client Side
          Set the
         answered         Server Side
         responses


                          Define the   Define the   Create a maps
          Get the         matching      corrects     of responses
         outcomes                                   (ie. reponse to
                             rule      responses         score)
Conclusion
             APIs Overview
Intro




                                                   Context
           Controls           Activity State
                                                  Recovery
        • pause              • finish          • Setup back-end
        • forward            • beforeFinish    • get/setContext
        • backward           • afterFinish     • deleteContext
Conclusion
                   APIs by practice
Intro




        •   Download the item at http://forge.tao.lu/files
        •   Unzip the archive
        •   Open the standalone folder
        •   Run it by opening the index.html file with a web
            browser (Firefox, Safari, Chrome or Opera)
Conclusion
                  APIs by practice
Intro




        Which feature do we need to integrate
        the standalone item to a CBA platform?
          –   In the APIs
          –   and more
Conclusion
                    APIs by practice
Intro




        •   Item Runtime API
            –   Send the answered values
            –   Send the score
            –   Log the events
        •   Workflow Runtime API
            –   Save the context (in case of crash)
Conclusion
                          Contributions
Intro




        •   Everything is on the Forge
            http://forge.tao.lu/
            –   Create a new Feature in the issues to let us know your
                needs
            –   Ask and discuss using the forum to share your ideas
            –   Use the wiki to be in touch with our coding standard
            –   Patch or create your own APIs
Intro




        This is your APIs

TAO DAYS - API (IT Session)

  • 1.
    TAO APIs Tao Days 2011, Mar 30-31, Luxembourg bertrand.chevrier@tudor.lu cedric.alfonsi@tudor.lu
  • 2.
    Conclusion Introduction •Away to address a large panel of needs •Help the community build TAO tools •Help the developments –Afront interface –Advanced tasks without all development knowledge •Openness to other platforms
  • 3.
  • 5.
    Intro APIs Overview Conclusion
  • 6.
    Conclusion APIs Overview Intro TAO I/O Custom I/O getSubjectName(), setUserVar(”try”, 3) setScore(14) Backend Setup initPush(”http://sever.com”) Event logging Item State logCustomEvent(”correct”,”test”) finish()
  • 7.
    Conclusion APIs Overview Intro Client Side Server Side Javascript API Javascript + PHP APIs Portability Security Integration to TAO through the Integration with any server side Item Runtime API back-end PHP Scoring Api provided with TAO
  • 8.
    Conclusion APIs Overview Intro Client Side Set the answered Server Side responses Define the Define the Create a maps Get the matching corrects of responses outcomes (ie. reponse to rule responses score)
  • 9.
    Conclusion APIs Overview Intro Context Controls Activity State Recovery • pause • finish • Setup back-end • forward • beforeFinish • get/setContext • backward • afterFinish • deleteContext
  • 11.
    Conclusion APIs by practice Intro • Download the item at http://forge.tao.lu/files • Unzip the archive • Open the standalone folder • Run it by opening the index.html file with a web browser (Firefox, Safari, Chrome or Opera)
  • 12.
    Conclusion APIs by practice Intro Which feature do we need to integrate the standalone item to a CBA platform? – In the APIs – and more
  • 13.
    Conclusion APIs by practice Intro • Item Runtime API – Send the answered values – Send the score – Log the events • Workflow Runtime API – Save the context (in case of crash)
  • 15.
    Conclusion Contributions Intro • Everything is on the Forge http://forge.tao.lu/ – Create a new Feature in the issues to let us know your needs – Ask and discuss using the forum to share your ideas – Use the wiki to be in touch with our coding standard – Patch or create your own APIs
  • 16.
    Intro This is your APIs