IBM Sterling Transformation Extender

Sterling Transformation Extender

Come for answers, stay for best practices. All we're missing is you.


#Sterling
#Supplychain
 View Only
  • 1.  Component Rule is invalid

    Posted 07/27/15 11:40 AM

    Originally posted by: @vkprasad_WTX


    Hello team I am trying to execute this component rule but when I build it shows one more inputs is invalid but when I remove component rule, It shows Map completed successfully. And I want to know how many functions we can write in component rule ex:-when,present I tried to search but I didn't found anything.


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 2.  Re: Component Rule is invalid

    Posted 07/27/15 02:22 PM

    Originally posted by: DeM0n


    Hi...There is no output card in the attached map. So it is not very clear about what you are trying to ask. Please be more specific about wnat you need to know and attach the correct example.

    You may use multiple functions in a component rule to build the logic in a map.


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: Component Rule is invalid

    Posted 07/28/15 05:33 AM
      |   view attached

    Originally posted by: @vkprasad_WTX


    Hello Team,

        I wrote component rule in the type tree.While map is built,it is coming as "one or more inputs is invalid"..So,I checked with the same input without using component rule.the map is built successfully.So can I know what is the problem with component rule?


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender

    Attachment(s)

    zip
    component.zip   8 KB 1 version


  • 4.  Re: Component Rule is invalid

    Posted 07/28/15 09:51 AM

    Originally posted by: paul.brett


    The first issue with this testcase, as shown in the trace:

    (Level 1: Offset 0, len 5, comp 1 of 3, #1, DI 000000000001:)
    Data at offset 0 ('pushh') failed RESTRICTION check for TYPE
       X'0003' (Item Root).

    ....is that you have created a restriction for Typetree object 'item root'.

    Once that is removed, I can see the map still fails due to your component rule:

    (Level 1: Offset 14, len 5, comp 3 of 3, #1, DI 000000000002:)
    Data at offset 14 ('krish') failed COMPONENT RULE test
       for component number 3, TYPE X'0002' (Group2 Root).

    Your rule is currently:

        $="WHEN(PRESENT(Item),PRESENT(Item2))"

    I think you meant to write:

        IF(PRESENT(Item),PRESENT(Item2))

    Which means, that if 'item' exists, then Item2 must also exist.  Alter the rule to suit your needs.  With the above, I get:

    (Level 0: Offset 0, len 19, comp 1 of 0, #1, DI 000000000003:)
    Data at offset 0 ('pushh<CR><LF>vissj<CR><LF>kr...') was found to be of TYPE
       X'0002' (Group2 Root).

       INPUT 1 was valid.

       End of Validation messages for INPUT CARD 1

    Thank-you.

    Paul.

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 5.  Re: Component Rule is invalid

    Posted 07/28/15 11:25 AM

    Originally posted by: @vkprasad_WTX


    Hi paul my condition is "If item1 exists then item2 must exist" for this only i wrote $="WHEN(PRESENT(Item),PRESENT(Item2))" this rule, But when I give different inputs also its not working, Is my component rule is correct? or no? and what is the main problem in my type tree? i didn't get,My team members also tried with this but they also didn't get.


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 6.  Re: Component Rule is invalid

    Posted 07/29/15 09:31 AM

    Originally posted by: paul.brett


    I enclosed the fixed Typetree and Map Source files.

    Thank-you.

    Paul.

    Follow me on Twitter


    #IBMSterlingTransformationExtender
    #DataExchange
    #IBM-Websphere-Transformation-Extender

    Attachment(s)

    mms
    Map1.mms   560 B 1 version
    mtt
    in1.mtt   5 KB 1 version


  • 7.  Re: Component Rule is invalid

    Posted 07/29/15 10:09 AM

    Originally posted by: @vkprasad_WTX


    Hi paul,

     Really thank you I got it know it's working well.


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 8.  Re: Component Rule is invalid

    Posted 07/29/15 10:40 AM
      |   view attached

    Originally posted by: @vkprasad_WTX


    Hi paul when Import you given map and type tree its working but if I don't give values in input that map also working (map completed successfully), I enclose my pi please can you check it once.

     

    Thank you


    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange

    Attachment(s)

    zip
    Component.zip   10 KB 1 version


  • 9.  Re: Component Rule is invalid

    Posted 07/29/15 11:20 AM

    Originally posted by: paul.brett


    The input trace:

    (Level 1: Offset 0, len 0, comp 1 of 3, #1, DI 000000000001:)
    Data at offset 0 (',,ghi') was found to be of TYPE
       X'0003' (Item Root).

    (Level 1: Offset 1, len 0, comp 2 of 3, #1, DI 000000000001:)
    Data at offset 1 (',ghi') was found to be of TYPE
       X'0004' (Item2 Root).

    (Level 1: Offset 2, len 3, comp 3 of 3, #1, DI 000000000001:)
    Data at offset 2 ('ghi') was found to be of TYPE
       X'0005' (Item3 Root).

    (Level 0: Offset 0, len 5, comp 1 of 0, #1, DI 000000000002:)
    Data at offset 0 (',,ghi') was found to be of TYPE
       X'0002' (Group2 Root).

    .....so the first and second objects do not exist.

    Your component rule:

    WHEN(PRESENT(Item),PRESENT(Item2))

    ...says that when Item is present (which it is not in this input) then Item2 must exist, or the input is conidered invalid.

    Everything is working as it should.

    Thank-you.

    Paul.

    Follow me on Twitter


    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 10.  Re: Component Rule is invalid

    Posted 07/29/15 11:21 AM

    Originally posted by: paul.brett


    FYI, the following input will fail:

    abc,,ghi

    Thank-you.

    Paul.

    Follow me on Twitter


    #IBM-Websphere-Transformation-Extender
    #DataExchange
    #IBMSterlingTransformationExtender


  • 11.  Re: Component Rule is invalid

    Posted 07/29/15 11:26 AM

    Originally posted by: @vkprasad_WTX


    Thank you paul I just confused, Now I cleared Thank you.


    #DataExchange
    #IBM-Websphere-Transformation-Extender
    #IBMSterlingTransformationExtender