OnHardwareAssetUnpendingDeleted (Rule)

Element properties:

TargetProvance.ITAM.ItamHardwareWorkflowTarget
CategoryDiscovery
EnabledFalse
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<Rule ID="OnHardwareAssetUnpendingDeleted" Enabled="false" Target="Provance.ITAM.ItamHardwareWorkflowTarget" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Discovery</Category>
<DataSources>
<DataSource ID="DS" TypeID="MicrosoftSystemCenterSubscriptions!Microsoft.SystemCenter.CmdbInstanceSubscription.DataSourceModule">
<Subscription>
<InstanceSubscription Type="$MPElement[Name='Provance.ITAM.HardwareAsset']$">
<UpdateInstance>
<Criteria>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property State="Pre">$Context/Property[Type='SystemLibrary!System.ConfigItem']/ObjectStatus$</Property>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$MPElement[Name="SystemLibrary!System.ConfigItem.ObjectStatusEnum.PendingDelete"]$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<Property State="Post">$Context/Property[Type='SystemLibrary!System.ConfigItem']/ObjectStatus$</Property>
</ValueExpression>
<Operator>NotEqual</Operator>
<ValueExpression>
<Value>$MPElement[Name="SystemLibrary!System.ConfigItem.ObjectStatusEnum.PendingDelete"]$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<UnaryExpression>
<ValueExpression>
<Property State="Post">$Context/Property[Type='SystemLibrary!System.ConfigItem']/ObjectStatus$</Property>
</ValueExpression>
<Operator>IsNull</Operator>
</UnaryExpression>
</Expression>
</Or>
</Expression>
</And>
</Expression>
</Criteria>
</UpdateInstance>
</InstanceSubscription>
<StartWatermark>1</StartWatermark>
<PollingIntervalInSeconds>30</PollingIntervalInSeconds>
<BatchSize>100</BatchSize>
</Subscription>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WindowsWorkflow" TypeID="MicrosoftSystemCenterSubscriptions!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction">
<Subscription>
<EnableBatchProcessing>true</EnableBatchProcessing>
<WindowsWorkflowConfiguration>
<AssemblyName>Provance.ServiceManager.Itam.Workflows</AssemblyName>
<WorkflowTypeName>Provance.ServiceManager.Itam.Workflows.HardwareAssetSchedulerWorkflow</WorkflowTypeName>
<WorkflowParameters>
<WorkflowArrayParameter Name="InstanceIDs" Type="guid">
<Item>$Data/BaseManagedEntityId$</Item>
</WorkflowArrayParameter>
</WorkflowParameters>
<RetryExceptions/>
<RetryDelaySeconds>11</RetryDelaySeconds>
<MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
</WindowsWorkflowConfiguration>
</Subscription>
</WriteAction>
</WriteActions>
</Rule>