templates - wso2 - check if a sequence really exists -


i have scenario in esb wso2:

  • a variable stored in registry called version
  • s1 -> sequence of version1
  • s2 -> sequence of version2
  • serror -> sequence in case of error

if version == 1 s1 called if version == 2 s2 called if version empy s3 called

now issue is: if version == 3 got error:

sequence named value {name ='null', expression =get-property('seqname')} cannot found  

beacuse s3 doesn't exist

my question is: way check if sequence exists?

thank you!

regards claudio

there no way check existence of sequence through existing mediators. if need that, can write class mediator , check synapseconfiguration object. case, can use switch mediator , add default case default sequence notify request has not supported version.

<switch> <case 1> <seq1> <case 2> <seq2> <case default> <seqdefault> </switch> 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -