ServiceManager.SLAManagement.Library.SLAInstance.TimeInformation.PeriodicRule (Rule)

Element properties:

TargetSystem.SLA.WorkflowTarget.Internal
CategorySystem
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule Default
WA WriteAction Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction Default

Source Code:

<Rule ID="ServiceManager.SLAManagement.Library.SLAInstance.TimeInformation.PeriodicRule" Enabled="true" Target="System.SLA.WorkflowTarget.Internal" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>System</Category>
<DataSources>
<DataSource ID="DS" TypeID="Subscriptions!Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule">
<Subscription>
<InstanceSubscription Type="$MPElement[Name='SLACore!System.SLA.Instance.TimeInformation']$">
<QueryInstance>
<Criteria>
<Expression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.TimeInformation']/TargetEndDate$</Property>
</ValueExpressionLeft>
<Operator>Less</Operator>
<ValueExpressionRight>
<Token>[Now]</Token>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.TimeInformation']/TargetWarningDate$</Property>
</ValueExpressionLeft>
<Operator>Less</Operator>
<ValueExpressionRight>
<Token>[Now]</Token>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.Information']/Status$</Property>
</ValueExpressionLeft>
<Operator>NotEqual</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name='SLACore!SLAInstance.Status.Warning']$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Or>
</Expression>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.Information']/Status$</Property>
</ValueExpressionLeft>
<Operator>NotEqual</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name='SLACore!SLAInstance.Status.Met']$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.Information']/Status$</Property>
</ValueExpressionLeft>
<Operator>NotEqual</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name='SLACore!SLAInstance.Status.Paused']$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.Information']/Status$</Property>
</ValueExpressionLeft>
<Operator>NotEqual</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name='SLACore!SLAInstance.Status.NotReady']$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.Information']/Status$</Property>
</ValueExpressionLeft>
<Operator>NotEqual</Operator>
<ValueExpressionRight>
<Value>$MPElement[Name='SLACore!SLAInstance.Status.Breached']$</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
</And>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpressionLeft>
<Property>$Context/Property[Type='SLACore!System.SLA.Instance.Information']/IsCancelled$</Property>
</ValueExpressionLeft>
<Operator>NotEqual</Operator>
<ValueExpressionRight>
<Value>True</Value>
</ValueExpressionRight>
</SimpleExpression>
</Expression>
</And>
</Expression>
</Criteria>
<RecurrenceIntervalInMinutes>3</RecurrenceIntervalInMinutes>
<RecurrenceTerminateCount>500</RecurrenceTerminateCount>
</QueryInstance>
</InstanceSubscription>
<PollingIntervalInSeconds>60</PollingIntervalInSeconds>
<BatchSize>100</BatchSize>
</Subscription>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Subscriptions!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction">
<Subscription>
<VisibleWorkflowStatusUi>false</VisibleWorkflowStatusUi>
<EnableBatchProcessing>true</EnableBatchProcessing>
<WindowsWorkflowConfiguration>
<AssemblyName>Microsoft.EnterpriseManagement.ServiceManager.SLA.Workflows</AssemblyName>
<WorkflowTypeName>Microsoft.EnterpriseManagement.ServiceManager.SLA.Workflows.PeriodicSLAMonitoringOnInstance</WorkflowTypeName>
<WorkflowParameters>
<WorkflowArrayParameter Name="InstanceIds" Type="guid">
<Item>$Data/BaseManagedEntityId$</Item>
</WorkflowArrayParameter>
</WorkflowParameters>
<RetryExceptions/>
<RetryDelaySeconds>60</RetryDelaySeconds>
<MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
</WindowsWorkflowConfiguration>
</Subscription>
</WriteAction>
</WriteActions>
</Rule>