本文介绍了自定义工作流解决方案:如何将每个环境的不同GUID处理为单个解决方案包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在开发中创建了工作流程解决方案。我需要将阶段GUID作为参数传递给工作流。我将其添加到COnfigurationManager.appsettings中但收到错误为

I have created the workflow solution in development. I need to pass the stage GUID's as arguments to the workflow. I added that into COnfigurationManager.appsettings but getting error as


错误1无法创建类型为'EngWorkflowSolution.Workflow1.Workflow1的活动"。 System.ArgumentNullException:值不能为空。

参数名称:g
$
    at System.Guid..ctor(String g)

   在EngWorkflowSolution.Workflow1.Workflow1..ctor()C:\ Project Server Workflow\EngWorkflowSolution\EngWorkflowSolution 1 1 



我是否需要在Microsoft.Office.Project.Server.Queuing.exe.config文件中添加这些值。如果是,我该怎么做?

Do I need to add these values in Microsoft.Office.Project.Server.Queuing.exe.config file. If yes, how can I do it?

在web.config文件中我添加了

In web.config file I added as

 

 < add key =" InitiationStageUid"值= QUOT; 24427350-81f5-4fe3-97d9-f72a4aecfbb2" />

 <add key="InitiationStageUid" value="24427350-81f5-4fe3-97d9-f72a4aecfbb2" />

在工作流程解决方案中,我将其添加为

In workflow solution I added it as

public Guid InitiationStageUid = new Guid(System.Configuration.ConfigurationManager.AppSettings [" InitiationStageUid" ;]);

public Guid InitiationStageUid = new Guid(System.Configuration.ConfigurationManager.AppSettings["InitiationStageUid"]);

 

否则有没有其他方法可以免费创建工作流解决方案包环境?

Else is there any other way to create workflow solution package environment free?

 

现在我必须为每个具有相应GUID的环境创建工作流解决方案包。

Right now I have to create the workflow solution package for each environment with respective GUIDs.

推荐答案

谢谢

DiptiK


这篇关于自定义工作流解决方案:如何将每个环境的不同GUID处理为单个解决方案包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 20:55