Switch/Case
Moderators: chulett, rschirm, roy
Switch/Case
How do we implement Switch/Case statement in transformer?
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
-
- Premium Member
- Posts: 1735
- Joined: Thu Mar 01, 2007 5:44 am
- Location: Troy, MI
I don't think you have direct implimentation for that, but you can use stage variables to keep the derivation simple if using If-then-else.
You can also send data to different links based on constraint in case with calculation/values defined in 'Then' and then funnel then afterwards.
You can also send data to different links based on constraint in case with calculation/values defined in 'Then' and then funnel then afterwards.
Priyadarshi Kunal
Genius may have its limitations, but stupidity is not thus handicapped.![Wink :wink:](./images/smilies/icon_wink.gif)
Genius may have its limitations, but stupidity is not thus handicapped.
![Wink :wink:](./images/smilies/icon_wink.gif)
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
There is no direct implementation. If you feel you really must have this, embed it in a routine and invoke that from the Transformer stage.
Seems like overkill to me. Most situations can be accomplished using sets of stage variables, as suggested.
Seems like overkill to me. Most situations can be accomplished using sets of stage variables, as suggested.
Last edited by ray.wurlod on Wed May 26, 2010 6:39 pm, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Not sure what you're attempting to accomplish, but there IS a Switch stage that you may wish to investigate.
Last edited by ray.wurlod on Wed May 26, 2010 3:59 am, edited 1 time in total.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: