locked
Passing an Enum Parameter to an InvokeMethod Activity RRS feed

  • General discussion

  • Hello everyone,

    I have a method that has a custom Enum value as a parameter, I want to be able to invoke this method from a workflow. However when I try to add the enum parameter I cannot choose my custom Enum as a type, I have tried an Int and a string however the InvokeMethod Activity always throws an error: "'Class' does not have a public static method named 'Method' matching the parameter types, generic type arguments, and generic type constraints supplied to InvokeMethod".

    Is it possible to pass a enum into the InvokeMethod or is the only way to do this is to pass in an int value.

     

    Thanks.


    • Changed type Andrew_Zhu Wednesday, August 25, 2010 6:48 AM no response
    Tuesday, August 17, 2010 8:34 PM

All replies

  • Interesting, I can select my custom enum as parameter type in InvokeMethod. Can you provide more information? What's the exact definition of your method?

    Wednesday, August 18, 2010 2:52 AM
  • Is your Enum nested? We don't support nested classes, so you might want to try making your Enum public and not nested.
    Wednesday, August 18, 2010 5:00 AM