Skip to content
This repository has been archived by the owner on Dec 28, 2022. It is now read-only.

Latest commit

 

History

History
50 lines (33 loc) · 1.21 KB

README.rst

File metadata and controls

50 lines (33 loc) · 1.21 KB

PyActiviti

An SDK that helps with interacting with Activiti.

Features

  • Create/Read/Update/Delete/Search a user
  • Create/Read/Update/Delete/Search a group
  • List the deployments

Todo

  • Create/Read/Update/Delete/Search Process
  • Create/Read/Update/Delete/Search Instance
  • Create/Read/Update/Delete/Search Task

Examples

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', '[email protected]', 'secret')
else:
    user = activiti.get_user('user1')

group = activiti.create_group('group1', 'Group1', 'Type')
activiti.group_add_member(group['Id'], user['Id'])