def trg_validate(uid, res_type, res_id, signal, cr):
 assert isinstance(signal, basestring)
 return WorkflowService.new(cr, uid, res_type, res_id).validate(signal)

def trg_validate ( uid , res_type , res_id , signal , cr ) : assert isinstance ( signal , basestring ) return WorkflowService . new ( cr , uid , res_type , res_id ) . validate ( signal )
fire a signal on a given workflow instance .