SharePoint 2013工作流-如何像以前在SP 2010中一样使用纯C#代码创建2013工作流? [英] SharePoint 2013 Workflow - How to create 2013 workflow with pure C# code like earlier doing in SP 2010?
本文介绍了SharePoint 2013工作流-如何像以前在SP 2010中一样使用纯C#代码创建2013工作流?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
根据SharePoint 2013工作流中的更新,我们只能创建具有声明性操作的Visual Studio工作流.
As per updates in SharePoint 2013 workflow, we can create visual studio workflow with declarative actions only.
是否有其他方法可以像我们之前在SharePoint 2010中一样使用C#代码创建SharePoint 2013工作流?
Is there any alternative way which allow to create SharePoint 2013 Workflow with C# code like earlier we were doing in SharePoint 2010 ?
谢谢
Asim Bagwan
Asim Bagwan
推荐答案
SharePoint 2013工作流完全是声明性的. 无法在工作流程中直接包含C#代码.您可以做的是将C#代码添加到Web服务中,然后从工作流的声明性代码中调用该Web服务. 但这就是 将C#代码添加到工作流的唯一方法.
SharePoint 2013 Workflows are strictly declarative. There is no way to include C# code directly in a workflow. What you can do is add C# code to a web service and call that web service from the declarative code of the workflow. But that's the only way to add C# code to a workflow.
这篇关于SharePoint 2013工作流-如何像以前在SP 2010中一样使用纯C#代码创建2013工作流?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文