为跟踪 EDI/AS2 消息创建的 BAM 活动
BizTalk Server包括为 EDI 和 AS2 状态报告创建的 BAM 活动。 这些活动可确定在状态报告中显示的数据。 本主题介绍了其中定义的 BAM 活动和字段,以及为 BAM 活动中的某些字段定义的枚举值。
您可以通过创建自定义 BAM 活动来创建自定义状态报告。 自定义活动可以基于某一种标准活动。 还可以通过查询 BizTalkDTADb 数据库中的 EdiMessageContent 表,来显示自定义状态报告中的消息内容。 有关详细信息,请参阅下面的“查询 EdiMessageContent 表”部分。
注意
修改 BAM 活动可能会影响 BizTalk EDI 和 AS2 运行时的处理,这两个运行时均依赖于 BAM 活动。
状态报告中使用的 BAM 活动
为跟踪 EDI/AS2 消息而创建的 BAM 活动作为视图包含在 BAMPrimaryImport 数据库中。 下表列出了 BAM 活动及其中的列:
BAM 活动 | 字段 |
---|---|
AS2InterchangeActivity | RecordID ActivityID InterchangeControlNo ReceiverID SenderID ReceiverQ SenderQ InterchangeDateTime 方向 消息 ID AS2From AS2To TimeCreated RowFlags LastModified |
AS2MdnActivity | RecordID ActivityID AS2PartyRole AS2From AS2To 消息 ID MdnDateTime MdnDispositionType DispositionModifierExtType DispositionModifierExtDescription MdnEncryptionType MdnSignatureType MdnPayloadContentKey MdnWireContentKey MdnMicValue TimeCreated RowFlags LastModified |
AS2MessageActivity | RecordID ActivityID ReceiverPartyName SenderPartyName AS2PartyRole AS2From AS2To 消息 ID MessageDateTime BTSInterchangeID BTSMessageID MdnProcessingStatus MessageEncryptionType IsMdnExpected MicAlgorithmType MessageSignatureType MessagePayloadContentKey MessageWireContentKey MessageMicValue TimeCreated RowFlags IsAS2MessageDuplicate DaysToCheckDuplicate FileName TrackingActivityID LastModified |
BatchingActivity | RecordID ActivityID BatchStatus DestinationPartyID DestinationPartyName ActivationTime BatchOccurrenceCount EdiEncodingType BatchType TargetedBatchCount ScheduledReleaseTime BatchElementCount RejectedBatchElementCount BatchSize LastBatchAction CreationTime ReleaseTime BatchReleaseType BatchServiceID ActivationMessageID ReleaseMessageID TimeCreated RowFlags BatchCorrelationID BatchName BatchID LastModified |
BatchInterchangeActivity | RecordID ActivityID InterchangeControlNo ReceiverPartyName SenderPartyName ReceiverID SenderID ReceiverQ SenderQ InterchangeDateTime 方向 TimeCreated RowFlags BatchCorrelationID LastModified |
BusinessMessageJournal | RecordID ActivityID MessageTrackingID ActionType ContainerActivityID ContainerType BTSInterchangeID BTSMessageId BTSServiceInstanceId BTSHostName RoutedToPartyName LinkedMessageTrackingID TimeCreated LastModified |
FunctionalAckActivity | RecordID ActivityID InterchangeActivityID GroupControlNo InterchangeControlNo ReceiverID SenderID ReceiverQ SenderQ InterchangeDateTime 方向 AckProcessingStatus AckStatusCode DeliveredTSCount AcceptedTSCount AckIcn AckIcnDate AckIcnTime ErrorCode1 ErrorCode2 ErrorCode3 ErrorCode4 ErrorCode5 TimeCreated RowFlags LastModified |
FunctionalGroupInfo | RecordID ActivityID InterchangeActivityID GroupControlNo FunctionalIDCode TSCount LastModified |
InterchangeAckActivity | RecordID ActivityID InterchangeControlNo ReceiverID SenderID ReceiverQ SenderQ InterchangeDateTime 方向 AckProcessingStatus AckStatusCode AckIcn AckIcnDate AckIcnTime AckNoteCode1 AckNoteCode2 TimeCreated RowFlags AckCorrelationId LastModified |
InterchangeStatusActivity | RecordID ActivityID InterchangeControlNo ReceiverID SenderID ReceiverQ SenderQ ReceiverPartyName SenderPartyName InterchangeDateTime 方向 AckStatusCode GroupCount EdiMessageType PortID IsInterchangeAckExpected IsFunctionalAckExpected TimeCreated RowFlags AckCorrelationId TsCorrelationId LastModified |
ResendJournalActivity | RecordID ActivityID TrackingActivityId ResendIndex ResendStatus BTSInterchangeID LastModified |
ResendTrackingActivity | RecordID ActivityID CorrelationId AdapterPrefix ResendCount MaxResendCount ResendInterval MaxRetryCount RetryInterval MessageContentID ResendTimeout RetryTimeout BTSInterchangeID LastModified |
TransactionSetActivity | RecordID ActivityID InterchangeControlNo ReceiverID SenderID ReceiverQ SenderQ InterchangeDateTime 方向 ReceiverPartyName SenderPartyName ApplicationSender ApplicationReceiver GroupDateTime GroupControlNo TransactionSetId DocType TransactionSetControlNo AckStatusCode BatchProcessing ProcessingDateTime GroupOrdinal TransactionSetOrdinal MessageContentKey TimeCreated RowFlags TsCorrelationId LastModified |
BAMPrimaryImport 数据库中的数据枚举
某些 EDI 和 AS2 数据以枚举形式保存在 BAMPrimaryImport 数据库的表中。 这些数据在状态报告中将显示为文本。 其值如下所示:
字段 | 枚举值 |
---|---|
AckProcessingStatus | NotExpected = -1 预期 = 0 Received = 1 发送 = 2 Generated = 3 |
AS2PartyRole | 全部 = 0 Receiver = 1 Sender = 2 |
BatchAction | Creation = 0 Activation = 1 ElementReference = 2 Release = 3 Override = 4 Termination = 5 Sent = 6 ToBeReleased = 7 |
BatchStatus | 全部 = -1 Defined = 0 活动 Released(已释放) 已完成 |
BatchType | ScheduleBased = 0 MessagesCountInGroup = 1 MessagesCountIn 交换 = 2 CharacterCount = 3 ExternalTrigger = 4 |
方向 | All = 0 Receive = 1 Send = 2 |
DisplayAckStatusCode | All = 100 Accepted = 0 PartiallyAccepted = 1 Rejected = -1 AckExpected = 500 AckNotExpected = 600 |
DispositionModifierExt 说明 |
Not Valued = 1 Authentication Failed = 2 Decryption Failed = 3 消息不足 安全性 = 4 Integrity Check Failed = 5 意外处理 错误 = 6 |
DispositionModifierExt 类型 |
Not Valued = 1 Error = 2 警告 = 3 |
EdiMessageType | X12, Edifact, 未知 |
IsMdnExpected | MDN is not expected = 0 MDN is expected = 1 |
MdnDispositionType | Processed = 1 Failed = 2 |
MdnProcessingStatus | All = 0 Processed = 1 Failed = 2 Expected = 3 Not Expected = 4 |
MessageEncryptionType | Message is not encrypted = 0 Message is encrypted = 1 |
MessageSignatureType | Message is not signed = 0 Message is signed = 1 |
MicAlgorithmType | Unknown type = -1 SHA1 = 1 MD5 = 2 |
BusinessMessageJournal BAM Activity
通过 BusinessMessageJournal BAM 活动,BizTalk Server 可以将收到的包含事务集的 EDI 交换与包含相同事务集的传出批交换相关联。 有关详细信息,请参阅 将传入事务集与传出批处理相关联。
查询 EdiMessageContent 表
在 BizTalkDTADb 数据库中的 EdiMessageContent 表中,可存储消息负载以及消息元数据。 通过自定义状态报告,您可以查询 EdiMessageContent 表以显示消息内容。 这与通过本产品中的某些状态报告显示消息内容的方法类似,例如使用 AS2 消息和相关 MDN 状态报告显示消息线路格式的方法。
使用自定义 BAM 活动中与 EdiMessageContent 表中的 ContentKey 列对应的键列,可以从自定义 BAM 活动链接到 EdiMessageContent 表。 例如,要从 AS2MessageActivity BAM 活动链接到 EdiMessageContent 表,可使用 MessagePayloadContentKey 列或 MessageWireContentKey 列链接到 ContentKey 列。
表 | 列 |
---|---|
EdiMessageContent (在 BizTalkDTADb 数据库中) |
ContentKey MessageFormat ContentType Charset TimeCreated TimeInserted IsOrphaned ContentBinary |