2
0

child_org.lua 667 B

1234567891011121314151617181920212223242526272829303132
  1. -- CHILD_ORG
  2. -- Module that enables user to create child in current org
  3. -- Initial configuration
  4. modpol.modules.child_org = {}
  5. modpol.modules.child_org.name = "Create child org"
  6. -- == REQUEST ==
  7. -- Initialization function
  8. -- function: modpol.modules.child_org:initialize
  9. -- gather data from initiator: child org name, comment
  10. -- function: modpol.modules.child_org:request
  11. -- == CONSENT ==
  12. -- function: modpol.orgs:consent(process_id, result_function)
  13. -- the result function should begin the completion process below
  14. -- == COMPLETION ==
  15. -- if approved/if failed functions?
  16. -- function: modpol.modules.child_org.create(initiator, parent_org, child_org)