最近我发现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;
是否还有其他状态,是否可以将它们组合在一起?
答案 0 :(得分:4)
这些是我们使用的映射:
希望这有帮助