Getting the Orchestration ServiceInstanceId

Home Page Forums BizTalk 2004 – BizTalk 2010 Getting the Orchestration ServiceInstanceId

Viewing 1 reply thread
  • Author
    Posts
    • #13439

      How do you get the Orchestration ServiceInstanceId (GUID) in an expression shape inside the orchestration?

      something like this?

      strMyServiceInstanceID = BTS.orchest….
      or the likes? I don’t know the object or property name.

      Neal Walters
      http://Biztalk-Training.com

      • #13440

        We reported this problem to Microsoft, here is their solution:

        strProcessId = System.Convert.ToString
        (YourOrchestrationName
        (Microsoft.XLANGs.BaseTypes.InstanceId));

        YourOrchestrationName is the TypeName found in the Orchestration Properties.

        This has not caused the \”stupid\” problem of the compile errors and having to touch the shape, and move it.

        • #13441

          Neal,

          Try adding a reference to Microsoft.XLANGs.Engine.dll, and then try on the expression shape:
          Microsoft.XLANGs.Core.Service.RootService.InstanceId

          I think that’s the one you’re looking for (though there are a few other properties that might be interesting on the service).

    • #13438

      Here is some additional info: http://geekswithblogs.net/sthomas/archive/2004/09/20/11424.aspx

      I never added a reference to the Engine.dll. But I have always had problems getting his to work. Sometimes, I’ll get a build error for no reason. Maybe adding that reference would fix that.

Viewing 1 reply thread
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.