Skip to content

Instantly share code, notes, and snippets.

@dfeyer
Created January 22, 2014 17:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfeyer/8562868 to your computer and use it in GitHub Desktop.
Save dfeyer/8562868 to your computer and use it in GitHub Desktop.
triggers:
eventNodeTypePublishedByMarketingTeam:
type: 'onBeforeNodePublishing'
condition:${q(node).is('[instanceof Ttree.Plugin:Event]') && q(user).hasRole('Ttree.Site:MarketingTeam')}
eventNodeTypeDeleted:
type: 'onNodeDeletion'
condition:${q(node).is('[instanceof Ttree.Plugin:Event]')}
actions:
moveToValidationWorkspace:
class: 'Ttree\Site\Workflow\Action\MoveToValidationWorkspace'
sendWaitingValidationNotification:
class: 'Ttree\Site\Workflow\Action\SendWaitingValidationNotification'
receipes:
eventNodeTypeMustBeValidatedBeforePublishing:
triggers: [ 'Ttree.Site:eventNodeTypePublishedByMarketingTeam' ]
actions:
moveNode: 'Ttree.Site:moveToValidationWorkspace'
sendNotification: 'Ttree.Site:sendWaitingValidationNotification'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment