Pracovní postup přidané aktivity
ServiceManager.ServiceRequest.Library.Rule.ActivityAdded (Rule)
Element properties:
Member Modules:
Source Code:
<Rule ID="ServiceManager.ServiceRequest.Library.Rule.ActivityAdded" Enabled="true" Target="System.WorkItem.ServiceRequest.InternalWorkflowTarget" 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='CoreActivity!System.WorkItem.Activity']$">
<AddInstance/>
</InstanceSubscription>
<!--<StartWatermark>1</StartWatermark>-->
<PollingIntervalInSeconds>10</PollingIntervalInSeconds>
<BatchSize>100</BatchSize>
</Subscription>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WindowsWorkflow" TypeID="Subscriptions!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction">
<Subscription>
<WindowsWorkflowConfiguration>
<AssemblyName>Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Workflows</AssemblyName>
<WorkflowTypeName>Microsoft.EnterpriseManagement.ServiceManager.Applications.ServiceRequest.Workflows.ActivityAddedWorkflow</WorkflowTypeName>
<WorkflowParameters>
<WorkflowParameter Name="InstanceId" Type="guid">$Data/BaseManagedEntityId$</WorkflowParameter>
<!--<WorkflowParameter Name="TypeId" Type="guid">$MPElement[Name='CoreService!System.WorkItem.ServiceRequest']$</WorkflowParameter>-->
</WorkflowParameters>
<RetryExceptions/>
<RetryDelaySeconds>11</RetryDelaySeconds>
<MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
</WindowsWorkflowConfiguration>
</Subscription>
</WriteAction>
</WriteActions>
</Rule>