Created
January 22, 2014 17:15
-
-
Save dfeyer/8562868 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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