OrchardCMS / OrchardCore

Orchard Core is an open-source modular and multi-tenant application framework built with ASP.NET Core, and a content management system (CMS) built on top of that framework.
https://orchardcore.net
BSD 3-Clause "New" or "Revised" License
7.45k stars 2.41k forks source link

Activated Workflow Event #4478

Open jeremycook opened 5 years ago

jeremycook commented 5 years ago

Provide an "Activated" Workflow Event based on the Created Event.

Some guidance:

in ContentsHandler
public override Task CreatedAsync(CreateContentContext context)
{
        return TriggerWorkflowEventAsync(nameof(ContentCreatedEvent), context.ContentItem);
}

So you just copy paste this one method, There is a CreatingAsync method too. And you create all the drivers and event classes and views for that.

jeremycook commented 5 years ago

I am planning on working on this soon, but wanted to create an issue with these tips before they got lost in the Gitter river. Of course if someone else jumps on it before me that is cool.