Module modpol.orgs.process
Process functions for orgs
Functions
modpol.orgs.call_module (module_slug, intiator, config, result) | Call modules |
modpol.orgs.get_root_process (id) | Get the root process of the given id |
modpol.orgs.delete_process (id) | Delete the process given id |
modpol.orgs:delete_process_tree (id) | Delete process tree by id |
modpol.orgs:add_pending_action (process_id, user, callback) | Add a new pending action |
modpol.orgs:remove_pending_action (process_id, user) | Remove a pending action |
modpol.orgs:wipe_pending_actions (process_id) | Wipe all pending actions for process |
modpol.orgs:has_pending_actions (user) | Check if there are pending actions for user |
modpol.orgs:interact (process_id, user) | Interact a user with given process |
Functions
- modpol.orgs.call_module (module_slug, intiator, config, result)
-
Call modules
Parameters:
- module_slug Same as module name
- intiator Initiator for module
- config Config for module
- result
- modpol.orgs.get_root_process (id)
-
Get the root process of the given id
Parameters:
- id
Returns:
-
root process
- modpol.orgs.delete_process (id)
-
Delete the process given id
Parameters:
- id
- modpol.orgs:delete_process_tree (id)
-
Delete process tree by id
Parameters:
- id Id of process tree
- modpol.orgs:add_pending_action (process_id, user, callback)
-
Add a new pending action
Parameters:
- process_id Process id
- user User adding the action
- callback
- modpol.orgs:remove_pending_action (process_id, user)
-
Remove a pending action
Parameters:
- process_id Process id to be removed
- user
- modpol.orgs:wipe_pending_actions (process_id)
-
Wipe all pending actions for process
Parameters:
- process_id
- modpol.orgs:has_pending_actions (user)
-
Check if there are pending actions for user
Parameters:
- user User
Returns:
-
True if there are pending actions for a user, false if not
- modpol.orgs:interact (process_id, user)
-
Interact a user with given process
Parameters:
- process_id
- user