#include "util.h" int bs_wl_check(EPM_rule_message_t msg) { int ifail = EPM_go, att_count, tag_cnt,form_cnt; tag_t rootTask, *attachments, *tags,*forms; char *val; stringstream ss,name_ss; EPM_ask_root_task(msg.task, &rootTask); EPM_ask_attachments(rootTask, EPM_target_attachment, &att_count, &attachments); TC_argument_list_t * arguments = msg.arguments; int arg_cnt = TC_number_of_arguments(arguments), status = 0; vector wl_types, judge_types,judge_vec; string name; map paras,judge_map; for (auto i = 0; i temp; split(judge_vec[i], "=", &temp); if(temp.size()==2) { judge_map[temp[0]] = temp[1]; } } for (int i = 0; ifirst.c_str(), &val); if(j->second!=val) { pass = true; break; } } if(!pass) { continue; } AOM_ask_value_tags(attachments[i], paras["relation"].c_str(), &tag_cnt, &tags); printf("relation :%s\n, length:%d\n", paras["relation"].c_str(), tag_cnt); pass = false; for(int j=0;j