def listUsers(): url = 'users' sclient = ScowClient() document = parseString(sclient.get(url)) users = document.getElementsByTagName('user') for u in users: idTag = u.getElementsByTagName('id')[0] username = idTag.childNodes[0].data print username
def listUsers(): url = 'users' sclient = ScowClient() #jsonObj = json.loads(sclient.get(url)) jsonObj = sclient.get(url) users = jsonObj['users'] for u in users: print u['id']
def startProc(): sclient = ScowClient() jsonObj = sclient.post("processInstances/active?execute=1grp&name=myproc", "") prettyPrintJson(jsonObj)
def listProcs(): sclient = ScowClient() jsonObj = sclient.get('processDefinitions') prettyPrintJson(jsonObj['processDefinitions'][0:4])
def listProcs(): sclient = ScowClient() jsonObj = sclient.get('processInstances/active') prettyPrintJson(jsonObj)