Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

Workflow Definition Example in SharePoint Server 2010 (ECM)

Last modified: May 07, 2010

Applies to: SharePoint Server 2010

Following is a sample workflow template definition, for a workflow named Hello World. This workflow uses several custom Microsoft InfoPath 2010 forms, each specified in the code example, including custom association, instantiation, and task editing forms.

<?xml version="1.0" encoding="utf-8" ?> 
  <!--  _lcid="1033" _version="12.0.3015" _dal="1"     --> 
  <!--  _LocalBinding     --> 
  <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <Workflow Name="Hello Workflow" 
      Description="A simple Workflow that demonstrates databinding in InfoPath." 
      Id="751B576D-1F32-4686-9017-D8F7E14967BA" 
      CodeBesideClass="HelloWorkflow1.SimpleWorkflow" 
      CodeBesideAssembly="HelloWorkflow, Version=3.0.0.0, 
        Culture=neutral, PublicKeyToken=49c96f99f6da2b8a" 
      AssociationUrl="_layouts/CstWrkflIP.aspx">
      <Categories /> 
      <MetaData>
        <Association_FormURN>urn:schemas-microsoft-
          com:office:infopath:HelloWorldInitAssoc:-myXSD-2005-06-07T19-
          20-19</Association_FormURN> 
        <Instantiation_FormURN>urn:schemas-microsoft-
          com:office:infopath:HelloWorldInitAssoc:-myXSD-2005-06-07T19-
          20-19</Instantiation_FormURN> 
        <Task0_FormURN>urn:schemas-microsoft-
          com:office:infopath:HelloWorldTask:-myXSD-2005-10-18T21-07-
          21</Task0_FormURN> 
        <Task1_FormURN>urn:schemas-microsoft-
          com:office:infopath:HelloWorldTask:-myXSD-2005-10-18T21-07-
          21</Task1_FormURN> 
        <StatusPageUrl>_layouts/WrkStat.aspx</StatusPageUrl> 
      </MetaData>
    </Workflow>
  </Elements>
Show:
© 2015 Microsoft