Forum Discussion
M_McDonald
16 years agoSuper Contributor
If you don't get an Approved status you could use a Conditional GoTo step to change the flow of the script.
Or, if you have a default value (say 0) that you wanted to use if no Approved items were found, you could put some logic in the PropertyTransfer:
[tt:rwowkwqm]declare namespace a='http://company.com/definition/2009/08/someservice';
if (exists(//DataTypes/a:DataType[a:Status='Approved']/a:Number))
then //DataTypes/a:DataType[a:Status='Approved']/a:Number
else 0[/tt:rwowkwqm]
I think that works...
Or, if you have a default value (say 0) that you wanted to use if no Approved items were found, you could put some logic in the PropertyTransfer:
[tt:rwowkwqm]declare namespace a='http://company.com/definition/2009/08/someservice';
if (exists(//DataTypes/a:DataType[a:Status='Approved']/a:Number))
then //DataTypes/a:DataType[a:Status='Approved']/a:Number
else 0[/tt:rwowkwqm]
I think that works...