This project is read-only.

How to create event handler for Workflow activity?

Topics: Administration, Core, Customizing Orchard, Writing modules, Writing themes
Jul 28, 2014 at 9:29 PM
I created some workflow activity for my e-commerce module. How can i run some code when these activities are triggered? I want to create anythings similar to event handler for IEventHandler.
Is there better option rather than IEventHandler in Orchard 1.8.1?
Aug 4, 2014 at 9:27 PM
You can use the DecisionActivity (provided by the Orchard.Scripting.CSharp feature) to execute C# code (look at the activity's implementation to find out which services you can access).
Alternatively, you could write your own activity and add it to the workflow.