Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The action sends an email to each of the following

  • watchers for the

...

...

  • “@document_user_reviewers@

...

  • "

Code Block
"triggers": [
  {
    "event":"on-expire"-change-state",
    "conditions": [
      {
        "state": "Published"
      }
    ],  
    "actions": [
      {
        "action":"send-email",
        "recipients": [
            "@document_user_reviewers@@watchers",
            "@watchers@creator",
            "@creator@lastUpdatedBy",
            "@lastUpdatedBy@document_user_reviewers@"
        ],
        "notification": {
          	"subject":"${content.title} has expiredbeen published",
          	"title":"${content.title} hasis expiredpublished",
          	"body":"Hello, ${content.link} in the ${content.space} space has expiredapproved and is now needsin tothe bePUBLISHED reviewedstate"
        }
      },
      {
        "action":"set-message",
        	"type":"info",
        	"title":"ExpiredPublished",
        	"body":"The page has expired been approved and published",
        	"tags":"state",
        	"mode":"autoClose"
      }
    ]
  }
]
Info

If adding the JSON trigger using workflow builder there is no need to include the opening "triggers": JSON markup notation, since it will be added by workflow builder.

event

"on-change-state"

  • trigger listens for a state change event

  • condition added

- trigger will only listen
  • for change of workflow state to named state

condition

"state": "Published"

  • state condition for the trigger event

action

"send-email"

  • email sent to users who are added as values for the workflow parameter @document_user_reviewers@

action

"set-message"

  • on-screen info type message notification when viewing the content stating content has

expired
  • been approved and published that will auto close after 10s

0