SPC016202: Declare required attributes in Workflow

Required attributes Name, CodeBesideAssembly, CodeBesideClass and Id must be declared in Workflow.

TypeName: DeclareRequiredAttributesInWorkflow
CheckId: SPC016202
Severity: Error
Type: WorkflowDefinition
Resolution

Add required attributes Name, CodeBesideAssembly, CodeBesideClass and Id Workflow. See sample below:

<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
   <Workflow
      Name="AdventureWorksWorkflow"
      Id="C6964BFF-BG8D-41ac-AC5E-B61EC111731C"
      CodeBesideClass="AdventureWorks.Workflow1"
      CodeBesideAssembly="AdventureWorks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=71e3bce121e9429c"
      Description="Use this workflow to track sequential tasks of users."
      TaskListContentTypeId="0x01080100C9C9515DE4E24001905074F980F93160"
      AssociationUrl="_layouts/myAssocPage.aspx"
      InstantiationUrl="_layouts/myIniPage.aspx"
      ModificationUrl="_layouts/myModPage.aspx">
      <Categories/>
      <AssociationData>
      ...
      </AssociationData>
      <MetaData>
      ...
      </MetaData>
   </Workflow>
</Elements>

comments powered by Disqus