SharePoint Workflow 定义文件示例

<?xml version="1.0" encoding="utf-8" ?>
<SPSWorkflow>
 <States>
  <State Name="新报告" DocumentLibraryTitle="新报告">
   <Properties>
    <Property Name="提交状态">
     <Commands>
      <Command Value="提交给领导">
       <Actions>
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.Move" Parameter="部门经理报告库" />
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.SetField" Parameter="入库时间=@Now" />
       </Actions>
      </Command>
     </Commands>
    </Property>
   </Properties>
  </State>
  <State Name="部门经理报告库" DocumentLibraryTitle="部门经理报告库">
   <Properties>
    <Property Name="报告处理状态">
     <Commands>
      <Command Value="打回">
       <Actions>
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.Move" Parameter="新报告" />
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.SetField" Parameter="审批人=@UserName" />
       </Actions>
      </Command>
      <Command Value="提交给老总">
       <Actions>
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.Copy" Parameter="总经理报告库" />
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.SetField" Parameter="入库时间=@Now" />
       </Actions>
      </Command>
     </Commands>
    </Property>
   </Properties>
  </State>
  <State Name="总经理报告库" DocumentLibraryTitle="总经理报告库">
   <Properties>
    <Property Name="报告处理状态">
     <Commands>
      <Command Value="打回">
       <Actions>
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.Move" Parameter="部门经理报告库" />
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.SetField" Parameter="入库时间=@Now" />
       </Actions>
      </Command>
      <Command Value="通过">
       <Actions>
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.Move" Parameter="已被审批通过的报告" />
        <Action Assembly="" Type="Kaneboy.SPSWorkflow.Actions.SetField" Parameter="通过审批时间=@Now" />
       </Actions>
      </Command>
     </Commands>
    </Property>
   </Properties>
  </State>
 </States>
</SPSWorkflow>

posted on 2004-05-14 18:16  kaneboy  阅读(211)  评论(0编辑  收藏  举报

导航