locked
ActivityAction workflow designer support RRS feed

  • Question

  • The ActivtyAction custom activity in the workflow samples is very interesting. I like the idea of being able to call an activity outside the predefined workflow.

    In the SimpleActivity project, the ShowDateTimeAsAction.xaml file doesn't open properly in the visual workflow designer.  The error message is shown below.  Is this something that will be fixed in the next beta (or failing that, by RTM)? (I hope so).

    Thanks,
    Notre


    System.InvalidOperationException: PropertyReference is unable to resolve property 'CustomAction'.
       at System.Activities.PropertyReferenceExtension`1.ProvideValue(IServiceProvider serviceProvider)
       at System.Xaml.Runtime.ClrObjectRuntime.CallProvideValue(MarkupExtension me, IServiceProvider serviceProvider)
       at System.Xaml.XamlObjectWriter.Logic_AssignProvidedValue(ObjectWriterContext ctx)
       at System.Xaml.XamlObjectWriter.WriteEndObject()
       at System.Xaml.XamlWriter.WriteNode(XamlReader reader)
       at System.Xaml.XamlServices.Transform(XamlReader xamlReader, XamlWriter xamlWriter, Boolean closeWriter)
       at System.Activities.Design.WorkflowDesigner.DeserializeString(String text)
       at System.Activities.Design.WorkflowDesigner.Load()

    Tuesday, August 4, 2009 9:23 PM

Answers

  • You shouldn't get this exception in the Beta 2 bits. That said, support for designing activities with ActivityAction properties in the designer is currently out of scope. You can use activities that have an activity action (that is, you can add instances of this activity and "fill the whole"), but unfortunately can't design the top-level activity in the designer currently.
    Wednesday, August 5, 2009 12:33 AM

All replies

  • You shouldn't get this exception in the Beta 2 bits. That said, support for designing activities with ActivityAction properties in the designer is currently out of scope. You can use activities that have an activity action (that is, you can add instances of this activity and "fill the whole"), but unfortunately can't design the top-level activity in the designer currently.
    Wednesday, August 5, 2009 12:33 AM
  • Thanks for your reply Kenny!  I'm a little unclear on the answer.  Are you saying that a workflow that 'takes' an ActivityAction will visualize properly in the designer in the Beta 2 bits, but there's current no way planned (in the editor) to be able to set the callback activity in that workflow?
    Wednesday, August 5, 2009 5:17 PM
  • You can set the ActivityAction in activities that already have a property of type ActivityAction. What you cannot do in the designer is declare a Property of type ActivityAction (in the Arguments designer) and then reference it with InvokeAction.

    Wednesday, August 5, 2009 5:33 PM
  • Ok, I think I get it.  I look forward to trying this out when Beta 2 is released.
    Wednesday, August 5, 2009 11:20 PM