Umbraco Forms - Custom Workflow - System.MissingMethodException
n
Hi All - Not sure if this is in the right place but.. I'm working on a legacy Umbraco v8 site that uses Umbraco Forms. As part of this project I've got create a custom forms workflow which started off going okay. The workflow has 2 custom settings on them, once of which uses a custom view. In both cases, these custom settings are public properties on the class with both get and set. The workflow appears in the Umbraco back office, but when I try to Save the workflow onto a form I get a "500 exception - System.MissingMethodException" being thrown. After studying the stack trace this is being thrown in the "Load Settings" method of the core
WorkflowType
base class that I'm inheriting from when it appears to be trying to set the value of the setting. -- Side track -- while writing this post I did find a work around -- Original question: Why am I getting this exception when it is trying to set a property? Work Around: The setting that was triggering the issue was of type
Guid
, changing this to a type
string
resolved the issue, but ideally I want the data strongly typed. New question: Is it possible to have a non-primitive type as the type of a setting on a workflow, or do they need to be primative types (strings, ints, etc) and things like Guids / collections / custom classes won't work?
5 Views