Skip to content

Instantly share code, notes, and snippets.

@marcusmotill
Created April 27, 2017 21:12
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 marcusmotill/c96336168f4a570b2ea411d81a95c5d8 to your computer and use it in GitHub Desktop.
Save marcusmotill/c96336168f4a570b2ea411d81a95c5d8 to your computer and use it in GitHub Desktop.

Actions

Action Life Cycle

Action Create, then...

  • User (click) Dismiss → Action state = dismiss, user will never see that action again
    • Dismiss event created
  • User (click) Complete → Action state = complete, user will never see that action again
    • Complete event created
  • Action definition indicates action is deprecated -> Action state = deprecate, user will never see that action again unless un-deprecated
  • Action definition indicates action is disabled -> Action state = deprecate, user will never see that action again unless enabled
  • System Completion -> After an integration returns a set of actions, all actions for that content matching the generated action type that were not returned with the set will have an Action state = complete and systemCompletion = true

Completion Consistency Level

The Completion Consistency Level helps the flow of an actions lifecycle so that it may be completed under certain circumstances. After any user assigned to a action completes the actions, the Completion Consistency Level is consulted to determine if the action should be completed for all other users assigned as well.

There are 3 Completion Consistency levels:

  1. All:
    • Every user assigned to the action must complete the action before the action state is changed to complete.
  2. One:
    • One user assigned to the action must complete the action before the action state is changed to complete.
  3. Quorum:
    • A majority of users assigned to the action must complete the action before the action state is changed to complete.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment