最近我发现 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;
是否还有更多状态,是否有可能将它们用于更多工件?