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.  How to create a custom function in WTX

    Posted 03/03/11 12:52 AM

    Originally posted by: Subbu.


    Hi

    Greetings of the day

    Could u please tell step by step me how to create custom function in wtx, i am new for the wtx

    Thaks& Regards
    Subbu.......


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


  • 2.  Re: how to create custom function in wtx

    Posted 03/03/11 04:51 AM

    Originally posted by: vijji_WTX


    hi Subbu,

    In WTX menu, click on RULES --> New Function
    It will disply Custom Function Modules windlow. There you give path (where to create function) and name of function then click Add button. It will display the Return and input parameter window. give required data and click ok. It will create a dll and .cpp files back end. You can use same funciton in WTX dev.

    All the best!

    reg,
    Vijji
    #DataExchange
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender


  • 3.  Re: how to create custom function in wtx

    Posted 04/05/11 08:47 AM

    Originally posted by: badriXCH


    Hi viji,
    I am new to WTX how does i can use the customized function on my development, I just created the function and i tried to use that in my rule but it is not working, showing that RULE REFERENCES UNKNOWN MAP:"MY FUNCTION MAP NAME", looking for your answer
    #IBMSterlingTransformationExtender
    #IBM-Websphere-Transformation-Extender
    #DataExchange


  • 4.  Re: how to create custom function in wtx

    Posted 10/19/16 05:24 AM

    Originally posted by: C0H4_Alireza_Naghshbandu


    Dear Vijji,

    Thanks for the advice.

    I have same issue, but for me, The files are generated with the name let say MyFunc.C

    now when i modify the file, what should I do to be ble to use this function in the WTX?

    What are the required steps?

     

    If you can provide me with a sample scenario step-by-step, that would be perfect.

    FYI, I am using WTX 8.4.1.3

     

    Thanks and regards,

    Alireza


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


  • 5.  Re: how to create custom function in wtx

    Posted 10/19/16 07:11 AM

    Originally posted by: paul.brett


    Please do not ressurect threads from 2011.  Please start your own.

    The file that is created is a skeleton, and requires major modification in order to work.  Are you a C, C++ or C# programmer?

    Thank-you.

    Paul.

    Follow me on Twitter


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


  • 6.  Re: How to create a custom function in WTX

    Posted 10/19/16 07:24 AM
      |   view attached

    Originally posted by: paul.brett


    Example:

     

    Will create a file called WriteFile.c which I have renamed as before_WriteFile.c and attached.

    Thank-you.

    Paul.

    Follow me on Twitter


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

    Attachment(s)

    c
    before_WriteFile.c   3 KB 1 version


  • 7.  Re: How to create a custom function in WTX

    Posted 10/19/16 07:28 AM
      |   view attached

    Originally posted by: paul.brett


    Then I edit that file (see after_WriteFile.c) and then use a C compiler to create WriteFile.dll.

    This file is then placed into the 'function_libs' sub folder of my WTX installation, and then the following rule works:

    =WriteFile->StringWrite("ABC")+"    "+LASTERRORCODE()+":"+LASTERRORMSG()

    The result is that a fixed string 'Hello, world !!    :' is written back to my map.

    I am not a C programmer, so this example is actually quite terrible, but good enough to demonstrate the process.

    Thank-you.

    Paul.

    Follow me on Twitter


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

    Attachment(s)

    c
    after_WriteFile.c   3 KB 1 version


  • 8.  Re: How to create a custom function in WTX

    Posted 10/25/16 08:22 AM

    Originally posted by: C0H4_Alireza_Naghshbandu


    Dear Paul,

    Thanks for your helps and supports.

    I am also somehow new to WTX (ITX) and I am facing some kind of similar issue.

    I need to create my own functions in C, I have followed the topic but I am facing error when I try to compile.

    I even tried to compile the file shared above in TurboC++ for windows, and I face error as:

    Undefined symbol _mpiMemMalloc in module...

    Can you tell me what Compiler shall I used? Or what am I missnig which leads me to this error?

    Thanks and appreciates in advanced.


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


  • 9.  Re: How to create a custom function in WTX

    Posted 10/26/16 05:09 AM

    Originally posted by: paul.brett


    It seems like either you have not got the TX SDK installed, or perhaps have not included the relevant libraries in the INCLUDE statement at compile/build time.

    Thank-you.

    Paul.

    Follow me on Twitter


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


  • 10.  Re: How to create a custom function in WTX

    Posted 10/26/16 04:48 PM

    Originally posted by: C0H4_Alireza_Naghshbandu


    Dear Paul,

    Thanks for your reply and appreciate your time.

    I think the issue is TX SDK as you have pointed to.

    I will try and may be bothering you again.

     

    Thanks


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


  • 11.  Re: How to create a custom function in WTX

    Posted 12/04/16 02:14 AM

    Originally posted by: C0H4_Alireza_Naghshbandu


    Dear Paul,

    Thanks for your advices.

    I have another issue and need your guide please:
    Where Can I get the TX SDK?
    I tried to download it using my passport but no success.

    Can you please advise where to get it?

    Thanks and regards,

    -Alireza


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


  • 12.  Re: How to create a custom function in WTX

    Posted 12/05/16 04:00 AM

    Originally posted by: paul.brett


    Please contact your local IBM Software Sales representative to purchase this software, if you do not already have it.

    Thank-you.

    Paul.

    Follow me on Twitter


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