none
Declare Variable Within an Atomic Scope Shape RRS feed

  • Question

  • Hi

    I'm trying to implement the following

    http://social.technet.microsoft.com/wiki/contents/articles/24766.biztalk-server-passing-variables-into-maps.aspx

    I need to declare a variable to access the .net assembly. It needs to be declared in something which is "atomic".

    I can't make my orchestration Atomic because I have a wcf database read-write in it.

    So I have made the orchestration LongRunning.

    My intention is to add a Scope Shape which is Atomic, and declare the variable to access the .net assembly within the "Atomic Scope" which is eluded to in several posts.

    My question - How do I declare this .net assemply variable within the Atomic Scope Shape?

    Thanks

    Trefor

    Friday, March 11, 2016 1:08 PM

Answers

All replies

  • Well, you just do.  It's not clear what problem you're having.

    Select the Scope in the Orchestration View (usually on the right side in Visual Studio), expand it if necessary and add the variable under the Variables folder.

    Friday, March 11, 2016 1:14 PM
    Moderator
  • What is the data type of this variable? Only non-serializable data types in .Net need to be handled like this. When you create the Atomic Shape, a similar scope will be created under the Orchestration Variables Section. Variables defined under an Atomic Scope then need not be serializable.

    Refer https://msdn.microsoft.com/en-us/library/aa995571.aspx - Using Variables in Orchestrations.

    Regards.

    Friday, March 11, 2016 1:18 PM