通过grpc发送colaboflow(cf)审计的python难题
colabo.flow.audit的Python项目详细描述
安装
# the latest pip install colabo.flow.audit # upgrade AFTER installing pip install --upgrade colabo.flow.audit # a speciffic one pip install colabo.flow.audit==0.0.4
使用
# importfromcolabo.flow.auditimportaudit_pb2fromcolabo.flow.auditimportColaboFlowAudit# create an ColaboFlowAudit objectcolaboFlowAudit=ColaboFlowAudit()# create an audit objectcfAuditRequest1=audit_pb2.SubmitAuditRequest(bpmn_type='activity',bpmn_subtype='task',bpmn_subsubtype='sub-task',flowId='searchForSounds',# ...)# send the audit object to the audit serviceresult1=colaboFlowAudit.audit_submit(cfAuditRequest1)# print the respons from the audit serviceprint("result1 = %s"%(result1))