Menu

Adding new action on trigger

Pau GC
2013-11-06
2013-11-06
  • Pau GC

    Pau GC - 2013-11-06

    Hi there,

    I'm looking towards making custom actions when a "On threshold" trigger jumps, specifically I want to execute an script to register a case on an external app. After googling and looking over the code... didn't find a clue yet, so,

    Where should I start ?

    Thanks!

     
  • Denis

    Denis - 2013-11-06

    Hi Pau,

    You'll have to code a class derived from the abstract "Action" class.
    It's defined in core/action.class.inc.php, there are some actual examples in the same file.

     
  • Pau GC

    Pau GC - 2013-11-06

    Ok, i'd tried that first, but only implemented the class and a method doExecute expecting to see the new class on the actions form, I guess it need some more coding tho...

    Thanks for the response !

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.