Skip to content

Event for workflows for the first update after a ContentItem's creation #8437

@MatteoPiovanelli

Description

@MatteoPiovanelli

public abstract class ContentActivity : Event {

A common requirement we see in our applications is to have something happen when a new item (of a specific type) has finished its first update. We had to hack this together several times, and I was thinking to add a workflow event (with corresponding activity) for that condition.

The idea would in the WorkflowContentHandler, to memorize OnCreated the ids of the ContentItems we are creating. If in the OnUpdated we have one of those ids, then we fire the new ContentFirstUpdated event.

It shares a possible issue with the existing ContentUpdated: the ContentItem in the context may not actually have that version be created, in case some validation step fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions