Indicates whether Process Management is enabled for a given Scenario dimension member.
<HsvScenarios>.SupportsProcessFlow lItemID, pvbSupports
Long (ByVal). The member ID of the Scenario dimension member. | |
Boolean. Returns TRUE if the scenario enables the Process Management feature, otherwise FALSE. |
The following example tests whether an application’s Scenario dimension members enable the Process Management feature. EnumAllMemberIDs gets the member IDs of the Scenario dimension members. In the example’s loop, each ID is passed to SupportsProcessFlow, and each member’s label and the Boolean returned by SupportsProcessFlow are printed to the Immediate window.
Dim vaIDs, cTreeInfo As IHsvTreeInfo, bRet As Boolean
Dim cScenarios As HsvScenarios, sLabel As String
Set cTreeInfo = m_cMetadata.Scenarios
Set cScenarios = m_cMetadata.Scenarios
cTreeInfo.EnumAllMemberIDs vaIDs
For i = LBound(vaIDs) To UBound(vaIDs)
cScenarios.SupportsProcessFlow vaIDs(i), bRet
cTreeInfo.GetLabel vaIDs(i), sLabel
Debug.Print sLabel & ": " & bRet
Next i