Skip to main content
Nintex Community Menu Bar
Question

Do JS deferred promises block action sequence progression in v2?

  • July 11, 2024
  • 6 replies
  • 17 views

Forum|alt.badge.img+7

I just implemented a snippet in the pattern I did in v1 where I use a deferred promise to hold the action sequence until it is returned.  However, in v2 that doesn’t seem to be working.  Is this supposed to be / going to be supported in v2?

Thanks!

6 replies

Forum|alt.badge.img+20

I assumed it would be supported. 


Forum|alt.badge.img+7

Paul,

Pat is right, this should work. Do you mind sharing the snippet of code that you’re using?

Also, do you mind sharing a bit more info about the actions immediately following your “Run Snippet” action? Like, are there any other actions within the action sequence? What other actions are you expecting to run following your “Run Action Sequence” action?

Thanks,

Emily


Forum|alt.badge.img+20

I assumed it would be supported.


Forum|alt.badge.img+10
  • Scholar
  • July 11, 2024

What is your technique for holding the action sequence with deferred promises? I wasn’t aware this was something that could be done and have been moving more things into javascript / other action sequences to compensate whenever I need to run anything asynchronous inside of javascript in an action sequence.


Forum|alt.badge.img+20
Mark_L:

What is your technique for holding the action sequence with deferred promises? I wasn't aware this was something that could be done and have been moving more things into javascript / other action sequences to compensate whenever I need to run anything asynchronous inside of javascript in an action sequence.

This is standard practice when using a snippet that does any sort of server call.

https://community.skuid.com/t/save-model-javascript-callback-function


Forum|alt.badge.img+10
  • Scholar
  • July 11, 2024
Jeanguy_Vachon:

http://community.skuid.com/discussion/comment/20576387#Comment_20576387

This is standard practice when using a snippet that does any sort of server call.

https://community.skuid.com/t/save-model-javascript-callback-function

I see so the snippet is in essence a function and you just return the promise to the rest of the action sequence. Good to know.