Biztalk Server中的状态是什么

时间:2013-05-08 07:49:54

标签: sql-server biztalk

最近我发现BizTalkMsgBoxDb.Instances中的nState列说明了BizTalk工件的状态。

我现在已经知道nState = 4告诉我它被暂停(可恢复)而nState = 32告诉我它被暂停(不可恢复)。是否概述了BizTalk Server中的所有可能状态?目前我将此查询用于编排,例如:

SELECT o.uidGUID, o.nvcName AS Name, COUNT(*) as Count, i.nState,
    CASE i.nState
    WHEN 1 THEN 'Ready To Run'
    WHEN 2 THEN 'Active'
    WHEN 4 THEN 'Suspended Resumable'
    WHEN 8 THEN 'Dehydrated'
    WHEN 16 THEN 'Completed With Discarded Messages'
    WHEN 32 THEN 'Suspended Non-Resumable'
    END as State
    FROM [BizTalkMsgboxDb].dbo.[Instances] AS i WITH (NOLOCK)
    JOIN [BizTalkMgmtDb].dbo.[bts_Orchestration] AS o WITH (NOLOCK) ON i.uidServiceID = o.uidGUID
    GROUP BY o.uidGUID, o.nvcName, i.nState;

是否还有其他状态,是否可以将它们组合在一起?

1 个答案:

答案 0 :(得分:4)

这些是我们使用的映射:

  • 1:开始
  • 2:已完成
  • 3:终止
  • 4:暂停
  • 5:ReadyToRun
  • 6:有效
  • 8:脱水
  • 16:CompletedWithDiscardedMessages
  • 32:SuspendedNonResumable
  • 64:InBreakpoint

希望这有帮助