This is a very common validation in BPEL or OSB to find if an element or child element exist in xml or not. In OSB there are xquery function like fn:exists() can be used to achieve this. But in BPEL there is no direction function available to check for the existence of element. So here is an alternate way to do that. The xpath function countNodes can count the number of nodes present in the element or under that element as child element.
ora:countNodes('inputVariable','payload','/ns1:process/ns1:File/ns1:Content/ns1:XMLContent/*')>0
Note the first parameter in the function which is variable name and the value is 'inputVariable' instead of '$inputVariable'. The function accepts only variable name as parameter.
Second is part name and third one is the exact path after part name.
The above function is used to find out if the anytype element 'XMLContent' has any child elements or not. The schema is below -
Another way to use (see SAARequester) countNode is this -
ora:countNodes('saaVar','ns4:Body/*')=0
where saaVar has no part name and it has this structure -
ora:countNodes('inputVariable','payload','/ns1:process/ns1:File/ns1:Content/ns1:XMLContent/*')>0
Note the first parameter in the function which is variable name and the value is 'inputVariable' instead of '$inputVariable'. The function accepts only variable name as parameter.
Second is part name and third one is the exact path after part name.
The above function is used to find out if the anytype element 'XMLContent' has any child elements or not. The schema is below -
Another way to use (see SAARequester) countNode is this -
ora:countNodes('saaVar','ns4:Body/*')=0
where saaVar has no part name and it has this structure -
Muğla
ReplyDeleteBitlis
Karaman
BCPV
Isparta
ReplyDeleteTunceli
Yozgat
Çorum
Konya
74YAAW
Ağrı
ReplyDeleteDiyarbakır
Bolu
Elazığ
Siirt
YP05H
Bayburt
ReplyDeleteKars
Batman
Urfa
İzmir
R8B
Bursa
ReplyDeleteKırşehir
Muş
Mersin
Çanakkale
3NY0
Burdur
ReplyDeleteGiresun
Sakarya
Artvin
Mardin
8BX2C
Samsun
ReplyDeleteNevşehir
Van
Bartın
Edirne
7D8T
Afyon
ReplyDeleteBalıkesir
Kırklareli
Amasya
Bilecik
X8T
amasya
ReplyDeletesinop
çorum
sakarya
van
1WE
whatsapp goruntulu show
ReplyDeleteshow
11O2
whatsapp görüntülü show
ReplyDeleteücretli.show
Z8YLWE
şırnak evden eve nakliyat
ReplyDeletemuğla evden eve nakliyat
hatay evden eve nakliyat
niğde evden eve nakliyat
ardahan evden eve nakliyat
0LZDB
denizli evden eve nakliyat
ReplyDeletekars evden eve nakliyat
çorum evden eve nakliyat
kars evden eve nakliyat
malatya evden eve nakliyat
İUJ0QX
76FFF
ReplyDelete%20 referans kodu
EE7B9
ReplyDeleteLinkedin Takipçi Satın Al
Bitcoin Para Kazanma
MEME Coin Hangi Borsada
Bitcoin Nasıl Oynanır
Sohbet
Qlc Coin Hangi Borsada
Bitcoin Nasıl Kazılır
Twitter Trend Topic Satın Al
Binance Referans Kodu
734DF
ReplyDeleteOmlira Coin Hangi Borsada
Chat Gpt Coin Hangi Borsada
Coin Madenciliği Nasıl Yapılır
Binance Madencilik Nasıl Yapılır
Clubhouse Takipçi Satın Al
Bitcoin Nasıl Alınır
Sohbet
Soundcloud Reposts Hilesi
Threads İzlenme Hilesi
78E6E
ReplyDeleteBitcoin Kazma
Vector Coin Hangi Borsada
Aion Coin Hangi Borsada
Shibanomi Coin Hangi Borsada
Sohbet
Okex Borsası Güvenilir mi
Btcturk Borsası Güvenilir mi
Area Coin Hangi Borsada
Youtube Beğeni Hilesi
شركة تسليك مجاري بالاحساء gi6jHW8S3t
ReplyDelete