locked
In BAM, how to get activity ID for the running instance in the orchestration. RRS feed

  • Question

  • I am trying to add document reference URL to the active instance in the orchestration for the activity which is already started.

    Please let me know how to get such activity ID.

    Thanks

    Jagadeesh 

     

    Jagadeesh RS

    Thursday, October 2, 2014 7:41 PM

Answers

  • Are you using TPE to set up the Activity Tracking or BAM API. If you are using TPE then identify what has been set as the Activity Id in the BTT file. If the Message Id is used then use "BTS.InterchangeID" [refer http://msdn.microsoft.com/en-us/library/aa562116.aspx] on the received message to get the Activity Id.

    If however you've mapped the Activity Id in BTT to the InstanceId then use "Microsoft.XLANGs.Core.Service.RootService.InstanceId" to get the activity id.

    Regards.

    • Marked as answer by Jagadeesh RS Monday, October 6, 2014 3:20 PM
    Monday, October 6, 2014 11:09 AM

All replies

  • An Orchestration is an Instance and hence it has an InstanceID. An ActivityID is related to tracking, and the Orchestration has no knowledge of Tracking, so you cannot fetch this ID from within an Orchestration.

    Morten la Cour

    Friday, October 3, 2014 11:55 AM
  • Are you using TPE to set up the Activity Tracking or BAM API. If you are using TPE then identify what has been set as the Activity Id in the BTT file. If the Message Id is used then use "BTS.InterchangeID" [refer http://msdn.microsoft.com/en-us/library/aa562116.aspx] on the received message to get the Activity Id.

    If however you've mapped the Activity Id in BTT to the InstanceId then use "Microsoft.XLANGs.Core.Service.RootService.InstanceId" to get the activity id.

    Regards.

    • Marked as answer by Jagadeesh RS Monday, October 6, 2014 3:20 PM
    Monday, October 6, 2014 11:09 AM