community-content

Forum Replies Created

Viewing 15 posts - 2,791 through 2,805 (of 9,648 total)
  • Author
    Posts
  • Hi, you can try this:

    In this case, the clientCode from source schema is feed into an IsNil logical functoid, a “Logical Existence” logical functoid and a scripting functoid (S1). S1 is an Inline C# script type with this code:

    public System.Boolean MyConcat(string param1)
    {
     return System.String.IsNullOrEmpty(param1);
    }

    Then the result of IsNil function, “Logical Existence” and S1 functoids are feeded into a logical OR functoid. Then the result of the logica OR functoid is feeded into a logical NOT function, which in turn feeds into a ValueMapping functoid (VM1) as first input. And the ClientCode of the source schema is also feeded into the the same value mapping functoid (VM1) as the second input. The result of of VM1 is then feeded to the ClientCode in the destination schema.

    The result of the logical OR functoid also feeds into ValueMapping functoid (VM2) as the first input, the 2nd input parameter is configured to “N/A”. then the result of VM2 is feeded to the ClientCode in the destination schema.

    This way, DestinationSchema.ClientCode=SourceSchema.Client if SourceSchema.Client exist, not null, and not empty, otherwise, DestinationSchema.ClientCode=”N/A”.

    Hope this helps. 

    [quote user="Zx7R"]

    Hi, – he wants to remove leading zeroes, not to add. Smile

    [/quote]

    The Math Add functoid will convert the string into a number add zero (number is unchanged) and outputs the number as a string without leading zeros.
    This approach is easier than the custom functoid if you have a lot numbers in a message you need to convert. With the scripting functoid approach you will need a scripting functoid for each number, each with a different method name. Likewise, in an orchestration you could end up with a lot of xpath statements/distinguished fields to manage.   

    in reply to: Creating orchestration instance, what does mean? #22408

    The language is C#.

    Each instantiated class exists for the life of the orchestration. It is serialized into the MessageBoxDb at certain persistence points. All the messages, variables and the processing state are saved. If your Biztalk server is switched off, the orchestration will restart from the last persistence point. If your orchestration has a long wait then it is persisted and removed from memory (dehydrated) and can be rehydrated when the event it was waiting for occurs.

    in reply to: Creating orchestration instance, what does mean? #22407

    My (limited) understanding is the orchestration is converted into class(es) in a C# like language, X# ?

    Then each orchestration instance is a case of instantiating the class(es), in the same way your C# class is instantitated (assuming it’s not a static)

    What a coincidence i am facing the same problem

    are you same santosh who sites behind me ?

    Great, this works nice[<:o)]

    in reply to: Using SQL Two-Way Send in Orchestration Scenario #22402

    Are you sure your wanting to receive data on that port before sending it or are you trying to achieve a send and receive a response?

    Diassembler (and assembler) stage can not run 2 components in the stage.

    You can run two different pipeline components at different places: one in receive port and other in orchestration.

    Let the FFDasm run normally by the pipeline manager in receive port and call the custom pipeline component from orchestration.

    in reply to: Debatching in custom pipeline component #22399

    You maybe able to debatch using the standard FlatFile Disassembler. Do you have an example of your actual message?

    in reply to: Set value to Element in a message using xpath #22398

    Possible causes:
    1. The element does not exist in the message. The xpath function will not create an element if it does not exist.
    2. The xpath statement cannot be resolved. Do you have an sample message?

    I believe you will need a custom adapter to detect empty files.

    When the file adapter creates a message from the file content. If the file is empty it does not create a message, so processing stops inside the adapter. So no pipeline is executed and no message is delivered to the messagebox.

    There is an example file adapter in the SDK:    C:\Program Files\Microsoft BizTalk Server 2006\SDK\Samples\AdaptersDevelopment\File Adapter
    You could modify this code to create an error message and send to Biztalk if the file is empty. You could then have an orchestration that would consume this error message and send an email

    Some more information is needed.

    1. In what stage does your custom pipeline component execute?
    2. What other pipeline components are in the pipeline?
    3. What is the filter criteria in orchestration receive shape?
    4. Where are strMessageType1 and strMessageType defined and what values are assigned to them?

     

    in reply to: BAM Excel Add-in #22389

    You have to installed it along with biztalk.

    in reply to: Using SQL Two-Way Send in Orchestration Scenario #22388

    Hi There!

    More info required. How is the activation on your receive shapes set up? Correlation-sets? Etc.etc… Can it simply be that you’ve forgot to set activate=true on the receive-shape that is supposed to trigger your orchestration to run (the top-most one)?

    // Niklas

    in reply to: Fetch lookup Data from MS CRM 4.0 #22387

    the target name sapce for response is fixed and cannot be changed as BTS CRM adaptor always returns the orginal targetnamespace and not the one you have provided.

    The adaptor was orginally designed for CRM3.0 and with minor tweaks can be used with CRM4.0. Response namespace cannot be changed USE the default namespace.

Viewing 15 posts - 2,791 through 2,805 (of 9,648 total)