Share via


$Config

Applies To: System Center 2012 - Operations Manager, System Center 2012 R2 Operations Manager, System Center 2012 SP1 - Operations Manager

The $Config variable notation refers to the configuration element of an element’s type definition.

$Config/ParameterName$

Remarks

The $Config variable notation allows a type definition element’s child elements to refer to the values of its configuration parameters when that type is actually instantiated.

Example

The following example defines a DataSourceModuleType element that requires the following configuration parameters: DataSourceLogName, DataSourceServerName, and FilterExpression. When the data source module is instantiated in a workflow, the values of DataSourceServerName, DataSourceLogName, and FilterExpression are accessed by the data source member module.

<DataSourceModuleType ID="NTEventDataSource">
  <Configuration>
     <xsd:element name="DataSourceLogName" type="xsd:string" /> 
     <xsd:element name="DataSourceServerName" type="xsd:string" /> 
     <xsd:element name="FilterExpression" type="ExpressionType" /> 
  </Configuration>
  <ModuleImplementation>
     <Composite>
       <MemberModules>
          <DataSource TypeID="AllNTEventsDataSource" ID="DS1">
             <DataSourceLogName>$Config/DataSourceLogName$</DataSourceLogName> 
             <DataSourceServerName>$Config/DataSourceServerName$</DataSourceServerName> 
         </DataSource>
         <ConditionDetection TypeID="ExpressionEvaluatorCondition" ID="CD1">
            <Expression>$Config/FilterExpression$</Expression> 
         </ConditionDetection>
       </MemberModules>
       <Composition>
         <Node ID="CD1">
            <Node ID="DS1"/> 
         </Node>
       </Composition>
     </Composite>
  </ModuleImplementation>
  <OutputType>NTEventDataType</OutputType> 
</DataSourceModuleType>