Skip to content

XAware Open Source Data Integration

You are here: Home arrow Forums
XAware Community Forums
Welcome, Guest
Please Login or Register.    Lost Password?
Re:Parameters for a bizComponent (1 viewing) (1) Guest
Go to bottom Post Reply Favoured: 0
TOPIC: Re:Parameters for a bizComponent
#2963
prichards (User)
XAware user
Posts: 104
User Offline Click here to see the profile of this user
Re:Parameters for a bizComponent 2 Months, 1 Week ago Karma: 13  
There are several ways of addressing this depending on where/how you are calling your SQL Bizcomp. When an element is mapped and the reference fails, XAware returns the actual reference as a substitution failure.

The quickest solution is to write and apply a simple Functoid that validates your mapped value - e.g. if it is not valid (i.e. StartsWith "%" and/or EndsWith "%" you could assume a substitution failure) return "0" or some default, otherwise if valid return the original value.

You could also write an Empty() or notEmpty() functoid which performs a similar check and returns "true" or "false". You could use any of these functoids in an xa:switch/xa:case instruction to decide whether to execute the SQL Bizcomp.

If you pass XML into your SQL Bizcomp (and then map the values from the XML instead of parameters), you can use the Bizcomp iteration behavior to control processing. For each node matched in the xa:input instruction parameter Path reference, the Bizcomp will execute that many times; including zero executions if there is no matching input XML. (However,if the XML exists with substitution failures as values, that XML will still be passed and the Bizcomp executed).

If you post your example bizfiles, we might be able to make a more specific recommendation.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
      Topics Author Date
    thread link
Parameters for a bizComponent
ggrosso 2008/09/29 03:53
    thread link
thread linkthread link Re:Parameters for a bizComponent
prichards 2008/10/27 17:03
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop

Community Login

Polls

What best describes your current or next project that will include data services?
 

Visit XAware.com