Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • C civirules
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 43
    • Issues 43
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 5
    • Merge requests 5
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Extensions
  • civirules
  • Merge requests
  • !141

Add an API to trigger rules manually

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open mattwire requested to merge mattwire/civirules:civiruleruletriggerapi into master May 01, 2021
  • Overview 7
  • Commits 1
  • Changes 4

This adds an API to trigger rules manually. Currently it is only working for "Post" triggers. Includes documentation.

This allows you to do a few things:

  1. Test the rules more easily (though be careful that the parameters might not be exactly the same).
  2. Build a rule with an Edit trigger that triggers the equivalent "Add" trigger (eg. when you want the same conditions/action for Add/Edit) - this might need an action to be implemented to do this.
  3. Trigger rules manually from custom/external implementations. (eg. when an activity is added a rule sends an email to the client. This allows you to put a "re-send" button on the page and the same rule will be triggered / email will be sent).
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: civiruleruletriggerapi