首页  编辑  

SharePoint工作流示例:增加邮件通知和审批

Tags: /计算机文档/Office/   Date Created:
用SharePoint Desinger 2013打开你的SharePoint网站:
点击左边导航的工作流,添加列表工作流,然后编辑工作流类似下面:
阶段:Approved
	如果 当前项目:Name not equals Home
	and 当前项目:Content Type not equals Folder
		Assign a task to Wiki Approver Group (Task outcome to 变量: Outcome | Task ID to 变量: TaskID )
	如果 当前项目:Content Type equals Folder
		Set Approve Status to Approved
	如果 变量: Outcome equals Approved
	and 当前项目:Name equals Wiki Registration Form:Wiki Page Title
	and 当前项目:Name not equals Home
	and 当前项目:Content Type not equals Folder
		Set Approve Status to Approved
		Email xxxx and xxxx; xxx
		Log 已通过 审批者:[%关联: 任务列表:Modified By%] to the workflow history list
	如果 变量: Outcome equals Approved
	and 当前项目:Name not equals Wiki Registration Form:Wiki Page Title
	and 当前项目:Name not equals Home
	and 当前项目:Content Type not equals Folder
		Set Approve Status to Approved
		Email xxx; xxx and xxx; xxx
		Log 已通过 审批者:[%关联: 任务列表:Modified By%] to the workflow history list
		Create item in Wiki Registration Form (Output to 变量: create )
	如果 变量: Outcome equals Rejected
	and 当前项目:Name not equals Home
	and 当前项目:Content Type not equals Folder
		Set Approve Status to Rejected
		Email 当前项目:Created By
		Log 已拒绝 审批者:[%关联: 任务列表:Modified By%] to the workflow history list
切换到阶段
	Go to End of Workflow