Windows 工作流基础活动 +迁移到 Visual Studio 2010

发布于 2024-10-26 07:21:22 字数 1230 浏览 7 评论 0原文

我使用 VS2008 创建了一个继承自 CompositeActivity 的自定义工作流程活动,如下所示。

public class CustomWorkflowActivity : System.Workflow.ComponentModel.CompositeActivity

我能够毫无问题地编写以下内容

<GS0:People365WorkflowActivity x:Class="People365.Workflows.Advance_Loan_1WF"
                           x:Name="Advance_Loan_1"
                           xmlns:GS0="clr-namespace:WorkflowEngine.Engine;assembly=WorkflowEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"
                           xmlns:GS1="clr-namespace:WorkflowEngine.ActivityLibrary;assembly=WorkflowEngine.ActivityLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"
                           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<GS1:People365SequenceActivity x:Name="Activity2" WorkflowTemplateActivityId="a6b6327b-c27f-459e-a933-c3cf66ab711f" IsMandatoryActivity="False"></GS1:People365SequenceActivity>
</GS0:People365WorkflowActivity>

将应用程序迁移到 VS2010 后,

  • ,出现以下错误类型“People365WorkflowActivity”不支持直接内容。
  • 类型“WorkflowEngine.Engine.People365WorkflowActivity”没有合适的 TypeConverter 或内容属性来处理此内容。

非常感谢任何帮助。

I created a custom worflow activity that inherit from CompositeActivity as shown below using VS2008

public class CustomWorkflowActivity : System.Workflow.ComponentModel.CompositeActivity

I am able to write the below with no problems

<GS0:People365WorkflowActivity x:Class="People365.Workflows.Advance_Loan_1WF"
                           x:Name="Advance_Loan_1"
                           xmlns:GS0="clr-namespace:WorkflowEngine.Engine;assembly=WorkflowEngine, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"
                           xmlns:GS1="clr-namespace:WorkflowEngine.ActivityLibrary;assembly=WorkflowEngine.ActivityLibrary, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"
                           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<GS1:People365SequenceActivity x:Name="Activity2" WorkflowTemplateActivityId="a6b6327b-c27f-459e-a933-c3cf66ab711f" IsMandatoryActivity="False"></GS1:People365SequenceActivity>
</GS0:People365WorkflowActivity>

after migrating the application to VS2010, the below errors appear

  • The type 'People365WorkflowActivity' does not support direct content.
  • Type 'WorkflowEngine.Engine.People365WorkflowActivity' does not have a suitable TypeConverter or content property to handle this content.

Any help is very appreciated.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

心作怪 2024-11-02 07:21:22

使用以下命令:

<GS0:People365WorkflowActivity x:Class="People365.Workflows.Advance_Loan_1WF"
  x:Name="Advance_Loan_1" xmlns:GS0="clr-    
  namespace:WorkflowEngine.Engine;assembly=WorkflowEngine,Version=1.0.0.0, 
  Culture=neutral, 
  PublicKeyToken=d2bf1cbcd6bbcd82" xmlns:GS1="clr-    
  namespace:WorkflowEngine.ActivityLibrary;assembly=WorkflowEngine.ActivityLibrary, 
  Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"     
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
   <GS0:People365WorkflowActivity.Activities>
      <GS1:People365SequenceActivity x:Name="Activity2" 
          WorkflowTemplateActivityId="a6b6327b-c27f-459e-a933-c3cf66ab711f" IsMandatoryActivity="False">
      </GS1:People365SequenceActivity>
   </GS0:People365WorkflowActivity.Activities>
</GS0:People365WorkflowActivity>

use the bellow:

<GS0:People365WorkflowActivity x:Class="People365.Workflows.Advance_Loan_1WF"
  x:Name="Advance_Loan_1" xmlns:GS0="clr-    
  namespace:WorkflowEngine.Engine;assembly=WorkflowEngine,Version=1.0.0.0, 
  Culture=neutral, 
  PublicKeyToken=d2bf1cbcd6bbcd82" xmlns:GS1="clr-    
  namespace:WorkflowEngine.ActivityLibrary;assembly=WorkflowEngine.ActivityLibrary, 
  Version=1.0.0.0, Culture=neutral, PublicKeyToken=d2bf1cbcd6bbcd82"     
  xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
   <GS0:People365WorkflowActivity.Activities>
      <GS1:People365SequenceActivity x:Name="Activity2" 
          WorkflowTemplateActivityId="a6b6327b-c27f-459e-a933-c3cf66ab711f" IsMandatoryActivity="False">
      </GS1:People365SequenceActivity>
   </GS0:People365WorkflowActivity.Activities>
</GS0:People365WorkflowActivity>
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文