Skip to Content Skip to Menu

Chain of auto actions

  • Abmago
  • Abmago
  • OFFLINE
  • Posts: 47
  • Thanks: 6
  • Karma: 0
4 years 7 months ago #317788 by Abmago
Chain of auto actions was created by Abmago
Is it possible to organize a chain of subsequent auto actions immediately after 1 event/trigger? I have such a chain, but it occurs to me that different subsequent actions on the same trigger are not effectively executed. As a pragmatic solution I can follow a chain of triggers to make all the actions done, but this is unfavourable, since the list is long and the user can follow more than just one pathway...

Is it possible define an immediate action on a specific (selfmade) autoaction?

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48550
  • Thanks: 8290
  • Karma: 1445
4 years 7 months ago #317794 by krileon
Replied by krileon on topic Chain of auto actions
Yes, you can chain auto actions. This is done using the autoactions_onAction trigger, which is fired when an auto action finishes executing. Its variables are as follows.

Code:
$_PLUGINS->trigger( 'autoactions_onAction', array( &$content, &$autoaction, &$user, &$variables, &$substitutions ) );

It is important that you condition against [var2_id] which is the auto action id of the auto action that just executed. If you don't you will end up in an infinite loop.

I think this really needs to be made easier though. Have added a feature ticket to implement chaining support, which would just let you select from a list of auto actions and it'll handle the chaining for you.

forge.joomlapolis.com/issues/7937


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.

Please Log in or Create an account to join the conversation.

  • Abmago
  • Abmago
  • OFFLINE
  • Posts: 47
  • Thanks: 6
  • Karma: 0
4 years 7 months ago #317803 by Abmago
Replied by Abmago on topic Chain of auto actions
Thank you for your reply. It should indeed become easier. The suggested code with variables is too difficult too me, since I am not a programmer. I do not know how to define the variables and how to close/finalize the code.

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum