简体   繁体   English

是否可以从Powershell定义共享点工作流?

[英]Is it possible to define sharepoint workflows from powershell?

I am able to create workflows using SharePoint designer; 我可以使用SharePoint Designer创建工作流; however, can this (including the adding of actions and conditions) also be accomplished in PowerShell? 但是,这(包括添加操作和条件)也可以在PowerShell中完成吗? Is this demonstrated in a book or in some resource online? 这是在书籍还是在线某些资源中得到证明?

Short Answer: 简短答案:

No 没有

Long Answer 长答案

Sharepoint 2013 Workflows uses the Workflow Manager service. Sharepoint 2013工作流使用工作流管理器服务。 Windows Workflow Foundation (WF), in turn, is built on the messaging functionality that is provided by Windows Communication Foundation (WCF). Windows Workflow Foundation(WF)依次建立在Windows Communication Foundation(WCF)提供的消息传递功能上。

Workflows are a structured collection of workflow "activities," each of which represents a functional component of a business process. 工作流是工作流“活动”的结构化集合,每个活动都表示业务流程的功能组件。

The activities, which are implementations of activity classes, are implemented declaratively by using XAML. 这些活动是活动类的实现,是通过使用XAML声明性地实现的

See MSDN 参见MSDN

XAML file is like an XML file, so if you want you can edit this file in PowerShell as if it were an XML file, but I think is better to use Sharepoint Designer or Visual Studio. XAML文件就像一个XML文件,因此,如果需要,您可以像在XML文件中一样在PowerShell中对其进行编辑,但是我认为最好使用Sharepoint Designer或Visual Studio。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM