您的位置:首页 > 其它

bpel中常用条件Test方法测试字段值是否为空

2011-11-14 19:48 295 查看
在bpel中经常要对一个字段的值进行判断,获得true或者false,作为条件。

接触不多,得到的结果常常不在意料之中,近日在网上觅得一些资料,贴这儿回头参考。



Test的用法:



To test if the value of a certain node is empty

It depends on what you mean by empty.

Contains no child nodes: not(node())
Contains no text content: not(string(.))
Contains no text other than whitespace: not(normalize-space(.))
Contains nothing except comments: not(node()[not(self::comment())])
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: