def trg_trigger(uid, res_type, res_id, cr):
 return WorkflowService.new(cr, uid, res_type, res_id).trigger()

def trg_trigger ( uid , res_type , res_id , cr ) : return WorkflowService . new ( cr , uid , res_type , res_id ) . trigger ( )
activate a trigger .