locked
Is there a plan to support a custom activity type as a root document in xaml on VS workflow designer RRS feed

Answers

  • as I know there is no approaches for 4.0 to make VS designer to recognize custom root element, and currently it's not heard that next release will support this.

    you may submit your suggestion to this link

    https://connect.microsoft.com/wf

    • Proposed as answer by Andrew_Zhu Monday, December 6, 2010 8:40 AM
    • Marked as answer by Andrew_Zhu Wednesday, December 8, 2010 8:11 AM
    Wednesday, December 1, 2010 7:27 PM

All replies

  • are you talking about custom activitybuilder?
    Wednesday, December 1, 2010 4:20 AM
  • Hi Ye Yu,

    No. I am referring to the physical workflow xaml file, 

    e.g. Workflow1.xaml in WorkflowConsoleApplication project template

     

    <p:Activity x:Class="$safeprojectname$.Workflow1" mva:VisualBasic.Settings="Assembly references and imported namespaces for internal implementation" 
         xmlns:mva="clr-namespace:Microsoft.VisualBasic.Activities;assembly=System.Activities"
         xmlns:p="http://schemas.microsoft.com/netfx/2009/xaml/activities"
         xmlns:s="clr-namespace:System;assembly=mscorlib"
         ...
      
    </p:Activity>
    
    

    Basically I have my own workflow visual studio project template,  similar to visual studio WorkflowConsoleApplication project template.  Inside my workflow file, I need my custom activity type as a root element instead of "Activity" type, something like below

     

    <my:CustomActivity 
         mc:Ignorable="sap"
         mva:VisualBasic.Settings="Assembly references and imported namespaces for internal implementation" 
       xmlns="http://schemas.microsoft.com/netfx/2009/xaml/activities"
         xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
          ...
         xmlns:my="http://schemas.mycompany.com/myactivity/wf" >
      
    </<span style="font-size:10.8333px">my:CustomActivity</span><span style="font-size:10.8333px">></span>
    

     

    Unfortunately, VS workflow designer does not support custom activity type as a root element in the xaml file. The designer shows the message  "Intentionally left blank. The document root element is not supported by the visual designer" on the workspace.

    By referring to the post replied by tilovell. It seems that I need to wrap by custom activity under the root "Activity" type.  I am just wondering is there a plan to support other activity type as root element in workflow file in next release of VS workflow designer? Or any approaches that can make VS designer recognize my custom activity as a root element in xaml file.

     

    Thanks.

    Wednesday, December 1, 2010 9:27 AM
  • as I know there is no approaches for 4.0 to make VS designer to recognize custom root element, and currently it's not heard that next release will support this.

    you may submit your suggestion to this link

    https://connect.microsoft.com/wf

    • Proposed as answer by Andrew_Zhu Monday, December 6, 2010 8:40 AM
    • Marked as answer by Andrew_Zhu Wednesday, December 8, 2010 8:11 AM
    Wednesday, December 1, 2010 7:27 PM
  • Thanks Ye Yu,

    May I know when is the next release of WF coming out?


     

     

    Thursday, December 2, 2010 5:30 PM
  • sorry, I don't know about this now.
    Thursday, December 2, 2010 6:38 PM
  • Hi,

    To achieve this feature, you can create a template workflow. In custom activity designer. users load up this template workflow and add their own activities to create a new workflow.

    Hope this helps.
    Regards
    This posting is provided "AS IS" with no warranties, and confers no rights. Microsoft Online Community Support. My Blog:http://xhinker.com "Microsoft Windows Workflow Foundation 4.0 Cookbook"
    Monday, December 6, 2010 8:40 AM
  • Hi Andrew,

    Are you referring to rehosted workflow designer environment? Indeed, it can be done on the rehosted application using the load method. But I need to archive feature on the Visual Studio Workflow Designer as well.

     

    Thanks

    Monday, December 6, 2010 10:06 AM
  • Hi, jhlim21

    You can open this template in both VS WF4 designer and Customized WF4 designer. Since this template workflow is a normal WF4 workflow itself.

    Regards


    This posting is provided "AS IS" with no warranties, and confers no rights. Microsoft Online Community Support. My Blog:http://xhinker.com "Microsoft Windows Workflow Foundation 4.0 Cookbook"
    Wednesday, December 8, 2010 8:11 AM