WriteAction (Rule)
Applies To: System Center Service Manager 2010
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Represents an implementation of a write action module type definition.
Schema Hierarchy
ManagementPack
Monitoring
Rules
Rule
WriteActions
WriteAction
Syntax
<WriteAction ID=”ModuleID” Comment=”Comment” TypeID=”ModuleTypeID”>
Custom Schema Defined Parameters
</WriteAction>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the WriteAction element.
Attributes
Attribute | Description |
---|---|
ID |
Required attribute. Represents the identity of the element. |
Comment |
Optional attribute. Represents commentary by the management pack author. |
TypeID |
Required attribute. Represents the WriteAction module type definition from which this WriteAction module inherits its configuration schema. |
ID Attribute Values
Value | Description |
---|---|
The format for the ID attribute should be |
The ID string must contain the following characteristics:
|
Child Elements
The child element of the WriteAction module is defined by the configuration schema of its base type as referenced in the TypeID attribute.
Parent Elements
Element | Description |
---|---|
Contains one or more write action modules. |
Remarks
A WriteAction module takes a single input data stream. It uses this data stream, perhaps in conjunction with some kind of condition detection, to affect system state in some way, such as within a workflow.
A write action module’s base type must always be a descendant of a WriteActionModuleType type.
Example
The following XML sample demonstrates a rule which contains a write action module that runs a Windows Foundation Workflow.
<Rule ID="Microsoft.SystemCenter.MonitoringHostKeepAlive" Enabled="true" Target="Microsoft.SystemCenter.MonitoringHostKeepAlive.Workflows.WorkflowTarget" ConfirmDelivery="true" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>System</Category>
<DataSources>
<DataSource ID="DS" TypeID="System!System.Scheduler">
<Scheduler>
<SimpleReccuringSchedule>
<Interval Unit="Minutes">120</Interval>
</SimpleReccuringSchedule>
<ExcludeDates />
</Scheduler>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WindowsWorkflow" TypeID="Subscriptions!Microsoft.EnterpriseManagement.SystemCenter.Subscription.WindowsWorkflowTaskWriteAction">
<Subscription>
<WindowsWorkflowConfiguration>
<AssemblyName>Microsoft.EnterpriseManagement.SystemCenter.MonitoringHostKeepAlive.Workflows</AssemblyName>
<WorkflowTypeName>Microsoft.EnterpriseManagement.SystemCenter.MonitoringHostKeepAlive.Workflows.MonitoringHostKeepAliveWorkflow</WorkflowTypeName>
<WorkflowParameters>
<WorkflowParameter Name="TimeoutInMinutes" Type="int">110</WorkflowParameter>
</WorkflowParameters>
<RetryExceptions></RetryExceptions>
<RetryDelaySeconds>11</RetryDelaySeconds>
<MaximumRunningTimeSeconds>7200</MaximumRunningTimeSeconds>
</WindowsWorkflowConfiguration>
</Subscription>
</WriteAction>
</WriteActions>
</Rule>