BizTalk Receive the file through Recvpipeline,after doing some business validations in orchestration,it's rename the file in orchestration and finally send the file to target system.
The requirement is end user want a log details like Source FileName, RenamedFIleName and Source Name(it's a custom promoted proeprty in RECV pipeline).
He is Ok to Have BAM or Logging those details in Text file on Date basis.
Please suggest which option to choose and if go BAM how to implement this scenario (or) if i go for File Logging ,how to implement?
That should a fairly straightforward BAM solution.
You need to create an Activity that contains (possibly)
- Receive File Name
- Transmit File Name
- Source Name
- Receive Time
- Transmit Time
Since you're dealing with Promoted Properties you should then be able to create a TPE and map those elements (don' forget to map the Activity ID to the Instance Id - first). Deploy the TPE.
Regards.
- Edited by ShankycheilMicrosoft community contributor Tuesday, February 03, 2015 5:38 AM EDIT
- Proposed as answer by Johns-305 [boatseller] Tuesday, February 03, 2015 1:37 PM
- Marked as answer by Angie xuMicrosoft contingent staff, Moderator 8 hours 34 minutes ago
Steps are as follows :
Create a BAM Activity with below attributes :
- Receive File Name
- Transmit File Name
- Source Name
- Receive Time
- Transmit Time
And deploy the BAM activity through bm.exe deploy-all . You can take reference from below link
Once done you can use BAM API or Tracking profile editor to populate BAM data . For this methodology you can use
below MSDN article
https://msdn.microsoft.com/en-us/library/aa559527.aspx
Thanks
Abhishek
- Marked as answer by Angie xuMicrosoft contingent staff, Moderator 8 hours 33 minutes ago
This scenario calls for a BAM implementation.
You have to first create BAM activity and view within a BAM Excel workbook and must deploy the BAM artifacts within your environment.
BAM activities identify the milestones and tracking data an individual is interested in tracking. Milestones are the steps in an activity that are measured in time, and tracking data is the key data points in a process you are interested in tracking
First identify what all data you need to map that your business require for logging/smooth functioning.
For creating BAM Activites Refer:
BizTalk 2010 Recipes : Business Activity Monitoring - Creating BAM Activities and Views
For deploying BAM Activities. Refer:
BizTalk 2010 Recipes : Business Activity Monitoring - Deploying BAM Activities and Views
Then you can use BAM API or Tracking profile editor to populate BAM data .
Refer the article : Business Activity Monitoring in Depth for Developers
Rachit
Hi ,
If you require process to be logged into file the best option is using enterprise Library .
Refer below link for reference
Using Entrerprise Library In Biztalk Orchestration To Log To A File -
Thanks
Abhishek
Hi BizQ,
I don't think most .NET logging frameworks are a good idea with BizTalk. Normally they just arent queued so theyll slow things down (often a lot). My preference is ALWAYS BAM.
Still you can refer few links below:
Using Entrerprise Library In Biztalk Orchestration To Log To A File
The Logging requirement is not a Error logging in to file.adding the Source FileName, RenamedFIleName and Source Name into the file as record.
SourceFileName RenamedFileName SOurceName
ABC.txt dfg.txt 12sys
yut.txt mfc.txt 52sys
This is how I have insert record into the text file from orchestration.can u help the how to add row in text file from Orch
You can do message logging as well with Enterprise Library :) .Its not only logging only the exception part .
In meanwhile have you gone through the link already been shared . It shows how you log events in Orchestration .
Thanks
Abhishek
- Edited by Abhishek0127[Abhishek kumar]MVP Tuesday, February 03, 2015 11:19 AM