trick
wenchan82
这个作者很懒,什么都没留下…
展开
-
REPEAT in webMethods
1. The REPEAT step allows you to conditionally repeat a sequence of child steps based on the success or failure of those steps. You can use REPEAT to : Re-execute (retry) a set of steps if any ...转载 2018-04-16 23:58:33 · 210 阅读 · 0 评论 -
Trim Leading Zeros
有两种方法1. 这个可以解决数字的开头0,用#代表数字2. 可以用string => replace;用regular expression;这个适用于数字和字母的混合 "you can use pub.string:replace service in WmPublic with searchString=^0* replaceString="" and useRegex...原创 2018-05-22 23:53:42 · 361 阅读 · 0 评论 -
logAppMessage vs logMessage
logAppMessage和logAppMessageLargeDocument是一样的功能,只是一个精简版而已。而logMessage会在Logs => Server下面保存记录。原创 2018-05-08 01:57:23 · 169 阅读 · 0 评论 -
webMethods JDBC Connection
1. Get the connection: 用pub下面的service,不要用wm下面的。 输入JDBCAdapter 得到一组array的结果 2. WmART/pub.art.service:setAdapterServiceNodeConnection is used to change the connection associated with pa...原创 2018-04-26 09:26:29 · 227 阅读 · 0 评论 -
webMethods Scheduled Task vs Direct Run Service
1. 在子service里面加入log的部分,如果直接run service,不会产生empty logs。 2. 但如果同样的code,在scheduled task里面运行,就会有empty logs 3. 而且,在loop里面执行logAppMessage,也会有empty log产生。 direct run ser...原创 2018-05-09 20:36:52 · 199 阅读 · 0 评论 -
webMethods里logAppMessage的问题
如果想要在framework里面log具体的transaction记录的话,只能把logAppMessage放在loop外面,不然会有空白的log entry。 比如这个简单的测试, REPEAT一次: 会产生两行空白记录 2. 这个也是EDI那个项目里面的empty log的原因,一个flow service里面...原创 2018-05-09 03:46:44 · 172 阅读 · 0 评论 -
Data from DB into webMethods
1) if it's blank space in DB (after trim service), it will be equal to ''; 2) if convert empty to null, it will reach $null statement; 3) 如果在webmethods里面,在最开始直接输入的是nothing, leave it blan...原创 2018-04-13 23:57:41 · 182 阅读 · 0 评论 -
同时使用DISTINCT和ORDER BY
一般情况下,这两个语句是不能同时使用的,但是可以通过group by的语句来规避SQL报错。select OLORD from OpenQuery(APPDEV, 'select * from ATDATA.I3ORDLP1') where I3SEQ = 0 and I3UPL != 'Y' group by OLORD order by min(I3AUTS);这样就可以得到想要的结果。Ref...原创 2018-04-19 00:04:47 · 673 阅读 · 0 评论 -
Access to Event Logs
I need to delete some of the event logs. There are two ways to do it.LVM3PLD03 => Event viewer => Application logs => i3pl1. From Computer management port2. From remote desktop原创 2018-04-13 09:51:50 · 171 阅读 · 0 评论 -
Software AG里重新导入document type
在IDE里面的document type已经很久没有更新过了,和target XSD相比,少了几个field。需要重新import。这个是旧的document type 在最新的XSD里面,把这三行去掉 然后再在top level的XSD里面,比如Document_List的如下位置加入下面的代码 <xs:element name="APPOINTMENT_LIS...原创 2018-04-06 03:30:51 · 193 阅读 · 0 评论 -
Retrieve FTP File Using Regular Expression in webMethods
在webMethods里面的FTP,有个功能是ftp:ls,可以输入file pattern,但是在这步还不能用Regex。可以LOOP拿个dirlist,然后再BRANCH,再用Regex测试file name是否符合什么pattern。几个常用的如下。在我这个例子里面,需要排除含有success的字符。 如果输入test.xml,会执行第一步,忽略第二步。Reference site: htt...原创 2018-04-18 01:51:56 · 132 阅读 · 0 评论 -
webMethods JDBC Blob output filed
If it's a BLOB as output JDBC type, the output field type should be byte Array to make it serializable. All objects which exist in the pipeline must be encoded into a binary format (i.e. serialize...原创 2018-07-17 22:53:14 · 164 阅读 · 0 评论