I've created a workflow, using the template in the documentation. I've given it a new GUID, and removed the settings (the task carries out some maintenance stuff that doesn't need any settings). However the Workflow isn't showing up in the dropdown when I add a workflow.
The workflow compiles ok, and I'm not getting any errors, so I'm a bit stumped as to why it isn't appearing in the list. The class is in a DLL with a couple of other related classes (utility classes for the task, and a publishEvent, which is being picked up by Umbraco correctly). Does anyone have any ideas why a workflow wouldn't show up in the list?
Try to mark your class as public. As far as I can remember the default access modifier in C# is internal, hence it cannot be accessed by an other assembly.
Workflow Not Showing In Contour
I've created a workflow, using the template in the documentation. I've given it a new GUID, and removed the settings (the task carries out some maintenance stuff that doesn't need any settings). However the Workflow isn't showing up in the dropdown when I add a workflow.
The workflow compiles ok, and I'm not getting any errors, so I'm a bit stumped as to why it isn't appearing in the list. The class is in a DLL with a couple of other related classes (utility classes for the task, and a publishEvent, which is being picked up by Umbraco correctly). Does anyone have any ideas why a workflow wouldn't show up in the list?
Can you post any source?
Best regards,
Harald
Sure:
Try to mark your class as public. As far as I can remember the default access modifier in C# is internal, hence it cannot be accessed by an other assembly.
Ahah, that was it! I am a tool, I should have spotted that earlier, thanks!
:)
Excellent, can you please mark this topic as solved?
Thanks,
Harald.
is working on a reply...