#define _CRT_SECURE_NO_WARNINGS #include "epm_handler_common.h" /************************************************************************************************* * ML_ItemIsMeetTheConditions() * * Description: * This handler will Determine whether the object meets the condition * * Syntax: * * -property: 判断属性(item.item_id,rev.,revMaster.) * * -value: 属性对应的值(1111,2222) * * -type: 判断类型(等于/不等于) * * Placement: * no request * **************************************************************************************************/ int ML_ItemIsMeetTheConditions(EPM_action_message_t msg) { printf("=========================判断对象是否满足条件 Start===================\n"); int ifail = ITK_ok; int attachments_num = 0; tag_t rootTask = NULLTAG, *attachments = NULLTAG; //获取任务对象 EPM_ask_root_task(msg.task, &rootTask); //获取任务目标对象 EPM_ask_attachments(rootTask, EPM_target_attachment, &attachments_num, &attachments); char *argflag = NULL, *argvalue = NULL, *arg = NULL; char arg1value[1024] = "", arg2value[1024] = "", arg3value[1024] = ""; //获取参数 int arg_cnt = TC_number_of_arguments(msg.arguments); printf("参数个数为:%d\n", arg_cnt); if (arg_cnt > 0) { for (int i = 0; i