|
在执行保存的时候,向数据库插入一条数据,有两个ID,business_data_id和processinstance
。从下面第一段脚本中可以看到,business_data_id是有值,可以参数化。processinstance没有值,程序中的实现方式是,在数据库中另外一张表中随机生成,取到这张表里。
第一段脚本执行后,数据库中有记录,business_data_id和processinstance都有值。
在第二段脚本中,再次向数据库中提交数据,需要这两个ID的值和数据库中的值一样。
processinstance的值怎么设置才能保证与数据库中的值一致??
第一段操作【保存】的脚本
web_submit_data("bpmAction.action_2",
"Action=http://192.168.1.223:7001/stdpm/bpm/bpmAction.action?mehtod=saveProcess",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://192.168.1.223:7001/stdpm/bpm/bpmAction.action?method=startProcess&intanceInfo.processName=sgjdjhbsb&BIAOH=SXMX6&JIANL_ID=1000042357015&SHIG_ID=1000042357046&jdjh=0&YEZ_ID=1000042356989&BAOS_LEIX=0&&functionId=1866492&menuId=3177074&STD_PLANID=&STD_NODEID=&linktype=open",
"Snapshot=t25.inf",
"Mode=HTML",
ITEMDATA,
"Name=version", "Value=0", ENDITEM,
"Name=method", "Value=saveProcess", ENDITEM,
"Name=intanceInfo.fileGId", "Value=", ENDITEM,
"Name=intanceInfo.processDefine_", "Value=2168105", ENDITEM,
"Name=intanceInfo.processName", "Value=sgjdjhbsb", ENDITEM,
"Name=intanceInfo.processInstance_", "Value=", ENDITEM,
"Name=intanceInfo.processInstanceName", "Value=test4", ENDITEM,
"Name=intanceInfo.business_data_id", "Value=1000042364058", ENDITEM,
第二段【传递】脚本:
web_submit_data("bpmAction.action_3",
"Action=http://192.168.1.223:7001/stdpm/bpm/bpmAction.action?mehtod=saveProcess",
"Method=POST",
"EncType=multipart/form-data",
"RecContentType=text/html",
"Referer=http://192.168.1.223:7001/stdpm/bpm/bpmAction.action?mehtod=saveProcess",
"Snapshot=t27.inf",
"Mode=HTML",
ITEMDATA,
"Name=version", "Value=0", ENDITEM,
"Name=method", "Value=saveProcess", ENDITEM,
"Name=intanceInfo.fileGId", "Value=", ENDITEM,
"Name=intanceInfo.processDefine_", "Value=2168105", ENDITEM,
"Name=intanceInfo.processName", "Value=sgjdjhbsb", ENDITEM,
"Name=intanceInfo.processInstance_", "Value=1000042364060", ENDITEM,
"Name=intanceInfo.processInstanceName", "Value=test09", ENDITEM,
"Name=intanceInfo.business_data_id", "Value=1000042364058", ENDITEM, |
|