FB6 Beta - possible AfterAction bug

Hi,

I have found that my AfterAction scripts are not being run after the action.  I believe they are being run before the action.

This is what I wanted to do, but didn't work:

  • Clear project variable
  • Run Action List [ My Action List ]   (project variable assigned in this action list)
    • AfterAction script: log variable
  • log shows project variable is NOT set

 

However, this works:

  • Clear project variable
  • Run Action List [ My Action List ]   (project variable assigned in this action list)
  • Run Script: log variable
  • log shows project variable IS set

 

The script (JavaScript) is exactly the same in both scenarios.  I am calling a global script.

Am I missing something here, or is the behavior not correct?

Thanks,
Mike

 

 

 

 

 

Hi Mike,

Thanks for reporting this. We’ve investigated, and it’s actually a bug with AfterAction script events for the Run Action List action. That script actually runs before the child action list runs, it’s a limitation of the stepping engine in FinalBuilder.

The bug is present in FB 5 and FB 6. The workaround is to put a Run Script or similar action after the Run Action List action, like you did.

I’m not sure what we can do to fix this. Previous FB versions had that script event locked-out, but due to backwards compatibility we’re reluctant to do that again - in case people are running scripts there.

I’ll follow this up and get back to you.

Regards,

Angus