[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Contains the workflow composition for a module type definition.

Schema Hierarchy

ManagementPack
  TypeDefinitions
    ModuleTypes
      WriteActionModuleType
        InputType (WriteActionModuleType)
          ModuleImplementation (WriteActionModuleType)
            Composite (WriteActionModuleType)
              Composition

Syntax

Xml
<Composition>
   <Node ID=”ModuleID”>…</Node>
</Composition>

Attributes and Elements

The following sections describe attributes, child elements, and the parent element of the Composition element.

Attributes

None.

Child Elements

Element Description

Node (WriteActionModuleType)

Required element. Represents a module in the linear workflow.

Parent Elements

Element Description

Composite (WriteActionModuleType)

Contains the module implementations and linear workflow composition in a module type definition.

Remarks

Module type workflows are defined with nested Node elements. Each node element is associated with any one of the modules listed in the MemberModules (WriteActionModuleType) element. The innermost node element’s module is the first step of the workflow. The outermost node element’s module is the last step in the workflow.

Example

The following XML sample shows a WriteActionModuleType element that is defined in the System.Windows.Library management pack. This particular write action module is used to start a service on the specified computer name. The reason for defining this module type is to provide a specialized version of the System.CommandExecuter write action module type.

  Copy Code
<WriteActionModuleType ID="Microsoft.Windows.ServiceControlManager.StartService" Accessibility="Public">
  <Configuration>
	<xsd:element name="ComputerName" type="xsd:string" />
	<xsd:element name="ServiceName" type="xsd:string" />
  </Configuration>
  <OverrideableParameters>
	<OverrideableParameter ID="ComputerName" ParameterType="string" Selector="$Config/ComputerName$" />
	<OverrideableParameter ID="ServiceName" ParameterType="string" Selector="$Config/ServiceName$" />
  </OverrideableParameters>
  <ModuleImplementation>
	<Composite>
	<MemberModules>
		<WriteAction ID="StartService" TypeID="System!System.CommandExecuter">
		<ApplicationName><![CDATA[%WinDir%\System32\sc.exe]]></ApplicationName>
		<WorkingDirectory />
		<CommandLine>\\$Config/ComputerName$ start $Config/ServiceName$</CommandLine>
		<TimeoutSeconds>60</TimeoutSeconds>
		<RequireOutput>true</RequireOutput>
		</WriteAction>
	</MemberModules>
	<Composition>
		<Node ID="StartService" />
	</Composition>
	</Composite>
  </ModuleImplementation>
  <OutputType>System!System.CommandOutput</OutputType>
  <InputType>System!System.BaseData</InputType>
</WriteActionModuleType>

See Also