2010年2月1日

SharePoint Workflow 基础

SharePoint Workflow 与Windows Workflow有什么不同?

=============================================

首先, 需要注意的一个基本的重点是: SharePoint workflow与windows workflow并不是不同的实体. SharePoint workflow的基础是windows workflow. 换句话说, SharePoint workflow位于Windows workflow之上, 并添加了人性化的一些特点.

 

下图展现了SharePoint workflow定义的范围. 它从.net framework中提取核心的Windows workflow, 然后在它上面应用以内容为中心的workflow. 以内容为中心的workflow无非是简单的与列表, 文档, 以及自定义内容有关的windows workflow而已.

Content_type_workflow

 

SharePoint Workflow生命周期中有哪些不同的阶段?

=============================================

SharePoint workflow的生命周期与SharePoint环境是关联非常紧密的. 正如我们所说的, SharePoint Workflow总是与SharePoint上下文相关, 这里的上下文当然指的是SharePoint内容的上下文, 比如列表或者文档.

 Four_different_stages_in_Sharepoint_workflow

SharePoint workflow的生命周期有四个阶段:

  • Associate
    • 正如上面提到的, SharePoint中的workflow永远是基于content type的. 所以, 第一步就是将workflow与一个诸如列表或者文档的content type关联起来.
  • Initiate
    • 第二步是初始化这个workflow instance. workflow只不过是一些类, 而这些类的对象最终需要被创建出来, 从而可以开始workflow的执行.
  • Modify
    • workflow实例会在每一个workflow的stage被做一些修改.
  • Complete
    • 最后, workflow的对象被终结.

 

资料来源:

SharePoint Workflow Basics

http://www.codeproject.com/KB/sharepoint/sharepointworkflowbasics.aspx

posted @ 2010-02-01 17:43 中道学友 阅读(236) 评论(0) 编辑

重装SPS 2003的一点经验

经过我的测试, 安装SharePoint 2003的时候.

 

先装RTM(Release To Market), 再装SP1, 再装SP3, 整个过程没有要求重启.

 

直接装SP3也可以, 但是要有一次重启.

 

重装SPS 2003之后, 你会发现在IIS中的站点都存在, 但是访问不了. 这是因为你还没有把你的IIS上的站点映射到config DB中的站点上. 在管理中心里, 点击左侧WSS的连接之后, 在安装或扩展IIS visual server页面中完成映射.

posted @ 2010-02-01 13:25 中道学友 阅读(23) 评论(0) 编辑

备份SharePoint站点的三种方法

有三种不同的feature可以用来打包SharePoint的站点:

  • 在SharePoint Designer中, 你可以将站点备份
  • 在SharePoint Designer中, 你可以创建一个Web package.
  • 在浏览器中, 你可以保存一个站点为一个站点模板.

使用哪个取决于你想要完成什么样的功能.

 

Web Package (.fwp file)  

============

当你想要共享或者重用web页面, 或者是站点, 或者是列表结构的时候, 你可以使用这个特性. 使用Web packages, 你既能够打包整个站点也可以选择你想要的特定的页面, 列表, 或者文档库. Web Package是一个很棒的方式来复制站点结构, 但是他们不能包括列表数据, 子站点, 或者安全和权限设置. 还有, 一个web package可以包括自定义的链接条. 你创建了package之后, 你可以import和deploy这个文件到任意多个web sites. 更多信息, 可以参考Export or import a Web package.

 

Backup and Restore (.cmp file)  

============

当你想要做整个站点或者子站点的backup时, 或者当你想要移动整个站点或子站点到另一个服务器或者地点的时候, 你都可以使用这个feature. 与Web package不同, content migration package会包括列表数据, 并且你不能选择仅包含特定的站点元素. 注意, 你会在这个过程中丢失一些自定义(customization)或者配置. 比如说, backup文件不会包含workflow, alerts, 还有在站点集水平存储的属性. 备份文件也不会包括Recycle bin的状态和在其中的对象. 要使用backup and restore, 你必须对站点拥有管理员的权限.

 

Site Template (.stp file)  

============

当你想要创建多个具有相同的基础内容和站点结构的web站点是, 你应该使用这个特性. 比如说, 你也许想让在一个站点里创建的所有的子站点都拥有相同的站点结构, look and feel, 甚至内容. 你可以通过保存站点为一个站点模板, 并把它加入到Site Template Gallery中, 这样的话, 所有人都可以用这个站点作为一个模板了. 与Web packages不同, 站点模板能够包含列表数据. 你必须即拥有你想要创建站点模板的站点的管理员权限, 又要拥有对site template gallery的写权限.

 

备份站点的步骤

==========

  • On the File menu, click Open Site.
  • In the Open Site dialog box, browse to and click the Web site that you want to back up, and then click Open.
  • On the Site menu, point to Administration, and then click Backup Web Site.
  • In the Backup Web Site dialog box, to include all subsites of the current Web site in the backup, select the Include subsites in archive check box.
  • If the current Web site is low on available storage space, click Advanced, enter a new location, and then click OK.

    Backing up a Web site requires a location to store temporary backup files. By default, Office SharePoint Designer 2007 uses the current Web site. You can use another site on the same server or a location on another server on the same network — for example, \\Server name\Share name.

  • In the Backup Web Site dialog box, click OK.
  • In the File Save dialog box, select the location where you want to store the .cmp file.
  • In the File name box, type the name for the file, and then click Save.

    If the site that you are backing up or restoring is large, the process can take quite a while.

  •  

    还原站点的步骤

    ===========

    Step 1: Create a new empty Web site as a destination
    1. On the File menu, click New.
    2. In the New dialog box, click the Web Site tab, click General, and then click Empty Web Site.
    3. In the Specify the location of the new Web site box, enter the location where you want to restore the backup site.

      You can restore the site to a different server, and you can restore it as either a new top-level site or a subsite under an existing top-level site.

    4. Click OK.

    小窍门: 为了确定是否有在备份的过程中有错误产生, 你可以查看.log文件. .log文件存储在你用户账户的Temp文件夹下(%temp%). 如果一个日志文件已经存在, 比如说之前的backup and restore留下的, 新的log文件会用不同名字来创建, 比如说smigrate_1.log, smigrate_2.log等等. 在这些文件中搜索下面的关键字:

    • cannot
    • could not
    • failure
    • server error
    • timed out
    • unable to
    • the server sent a response.

     

    Step 2: Restore the backup file to the destination
    1. With the destination site open, on the Site menu, point to Administration, and then click Restore Web Site.
    2. In the File Open dialog box, browse to and click the .cmp file that you want to restore, and then click Open.
    3. If the current Web site is low on available storage space, click Advanced, and then do any of the following:
      • To store the archive files in another temporary location, enter a new location in the Temporary location for archive files box.

        Backing up a Web site requires a location to store temporary backup files. By default, Office SharePoint Designer 2007 uses the current Web site. You can use another site on the same server or a location on another server on the same network — for example, \\Server name\Share name.

      • To store the .log file in another location, enter a new location in the Location for import log file box.

        You might need to choose another location for the .log file if the server cannot write to the default location. By default, Office SharePoint Designer 2007 creates an import .log file in the current Web site. You can check this file to determine if there were errors during the restore process.

    4. In the Restore Web Site dialog box, click OK to confirm that you want to restore the .cmp file to the current empty Web site.

      If the site that you are backing up or restoring is large, the process can take quite a while.

     

    资料来源:

    Back up, restore, or move a SharePoint site

    http://office.microsoft.com/en-us/sharepointdesigner/HA100699391033.aspx

    posted @ 2010-02-01 13:17 中道学友 阅读(298) 评论(0) 编辑

    如何检查SharePoint Portal Server 2003的安装文件的版本

    可以产看如下目录中的Microsoft.SharePoint.Portal.dll文件的版本.

    X:\SharePoint Portal Server 2003 Installation\SPS\Files\PFiles\COMMON\MSSHARED\WEBSRVEX\60\ISAPI

     

    2-1-2010 10-47-53 AM

    在上图中, 我们看到这个文件的版本号, 还有产品的版本号: 11.0.5704.0

    对照文章WSS 2.0和SharePoint Portal Server 2003的版本号小结可以看出, 这个是RTM版本的.

     

     

    注意, 下图中的版本就有问题. 是MS的pre-release的版本. 微软的补丁是无法达到这个版本上的.

    2-1-2010 10-55-25 AM

    posted @ 2010-02-01 10:51 中道学友 阅读(70) 评论(0) 编辑

    技术追求准确,态度积极向上