IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

TN Import for Processing Rules

  • 1.  TN Import for Processing Rules

    Posted Thu December 12, 2002 06:22 PM

    Hello,

    Is there a way that we can preserve the list of order of Processing Rule when we import it to another webMethods environment? I think using the TNConsole to do the import and export, it is working fine but when we import it using the command line in UNIX, the order was not preserve.

    Here is the command line I use for UNIX:

    tnimport.sh -xml ${TNWORK_XML} -force -db

    Do I miss any parameter?

    THanks,
    faith


    #B2B-Integration
    #webMethods
    #Integration-Server-and-ESB


  • 2.  RE: TN Import for Processing Rules

    Posted Thu December 12, 2002 08:42 PM

    ok…i got it…tnimport and tnexport works fine…we got the wrong file that’s why…

    Thanks,
    Faith


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 3.  RE: TN Import for Processing Rules

    Posted Thu December 12, 2002 08:55 PM

    Hi Faith,

    Can you explain this a bit more? For the situation where we want to update a processing rule, we are currently manually import the XML file via the TN console and then moving the processing rule up to where the original one is, and then deleting the existing one. If we could improve this process I would be happy.

    Where did you learn about the input parameters to the tnimport.sh file? (eg. -force, etc)
    Thx


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 4.  RE: TN Import for Processing Rules

    Posted Thu December 12, 2002 10:43 PM

    Okay…I will gladly explain it…

    What we do is take the Trading Network data from one environment to another. We use the tnexport and tnimport script. You can get it from WmTN package: WmTN/bin
    Just type ./tnimport.sh or ./tnexport and it will give you the options you want.

    Also, bear in mind, when you do a tnimport for Processing Rule, this should be one time only. If there’s a processing rule exists on the target server and you do tnimport with a new file, it will be appended even if there’s existing Rule that has the same name. Unlike Document Type, if it has the same name, it will be overwritten. So what we do is when we do tnimport on the target server, we delete all the Processing Rule first so it will not be duplicated.

    HTH,
    Faith


    #webMethods
    #B2B-Integration
    #Integration-Server-and-ESB


  • 5.  RE: TN Import for Processing Rules

    Posted Thu December 12, 2002 11:08 PM

    Thanks Faith - do you know what the possible ‘options are’ - ie. the arguments to the tnimport.sh file. You have -xml and -force there. Could you explain the -force option and also list the other options? Better yet - where did you find out the available options?

    Thx


    #B2B-Integration
    #Integration-Server-and-ESB
    #webMethods


  • 6.  RE: TN Import for Processing Rules

    Posted Thu December 12, 2002 11:27 PM

    Will,

    Here is the usage, I cut and paste from the script itself:
    -xml –> if your file is in xml format.
    -bin –> if your file is in binary.

    So you can type:
    ./tnimport.sh -xml TNData -force -db

    This is what I used in importing the TN and I noticed that even if I use the -force option, Processing Rule was still appended and Document Type was overwritten. So to be safe, just clear your Processing Rule first before doing any import.

    maybe somebody can explain better regarding this one.

    ====================
    Usage: tnimport INFILE OPTIONS

    INFILE is one of the following:
    -bin (imports from binary file)
    -xml (imports from xml file)

    OPTIONS are among the following:
    -db (actually write data to datastore)
    -force
    Applies to inserting ID’d data only (attributes,
    types, profile field defs, profiles). If an item
    exists in the database with the same ID, overwrite
    it (default is to fail).
    -rrappend
    Applies only to inserting routing rules. By default,
    imported routing rules COMPLETELY REPLACE the rules
    in the system datastore. With this option, the new
    rules are appended to the end of the existing list.
    -csappend
    Same as ‘rrappend’, but applies to conversation scripts.

    The type file should be a persisted IData, as per the tnexport
    utility.

    Running without the ‘-db’ option will simply load and
    print the data in your file (useful for testing). With the
    ‘-db’ option specified, this program will attempt to insert
    your data into the datastore.

    HTH.
    Faith


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 7.  RE: TN Import for Processing Rules

    Posted Thu September 09, 2004 10:41 PM

    Hey Faith …
    Thanks for your explanation. It really helped me at a great extent.
    But frankly asking what do u mean by ‘HTH’ …u wrote before your name in last post ?

    Regards,
    Nilesh


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 8.  RE: TN Import for Processing Rules

    Posted Thu September 09, 2004 11:11 PM

    Nilesh,

    sorry in the middle,Take it easy,

    HTH = Hope This Helps

    HTH.
    RMG


    #Integration-Server-and-ESB
    #B2B-Integration
    #webMethods


  • 9.  RE: TN Import for Processing Rules

    Posted Sat September 11, 2004 12:49 AM