An SDK that helps with interacting with Activiti.
- Free software: BSD license
- Documentation: https://pyactiviti.readthedocs.org.
- Create/Read/Update/Delete/Search a user
- Create/Read/Update/Delete/Search a group
- List the deployments
- Create/Read/Update/Delete/Search Process
- Create/Read/Update/Delete/Search Instance
- Create/Read/Update/Delete/Search Task
from pyactiviti import Activiti
ACTIVITI_AUTH = ('kermit', 'kermit')
ACTIVITI_API = 'http://localhost:8080/activiti-rest'
activiti = Activiti(ACTIVITI_API, auth=ACTIVITI_AUTH)
if not activiti.user_exists('user1'):
user = activiti.create_user('user1', 'foo@bar.org', 'secret')
else:
user = activiti.get_user('user1')
group = activiti.create_group('group1', 'Group1', 'Type')
activiti.group_add_member(group['Id'], user['Id'])