User Tools

Site Tools


pracro:post-commit-hook

This is an old revision of the document!


Post-Commit-Hook design

A method for running a script on session data is needed on session-commit (possibly also discard?) in order to for example be able to post data to external databases when the data are commit to the pracro database. The mechanism should be designed so that it is also able to handle journal commits and thereby replacing the existing <resume> tag:

<?xml version='1.0' encoding='UTF-8'?>
<macro name="myname" version="1.0">
  <resume>
    <script>
      return 'hello world'
    </script>
  </resume>
  .
  .
  .
pracro/post-commit-hook.1322811400.txt.gz · Last modified: 2011/12/02 08:36 by deva