Hi everyone, my boss is extremely skeptical that t...
# suitescript
m
Hi everyone, my boss is extremely skeptical that the nlapiYieldScript is working as designed. He believes that each time the script returns from being yielded that it starts processing from the beginning. What would be the simplest way to convince him that the script returns to processing in the state that it left processing? ( or is he right?)
s
If nlapiYieldScript caused the script to start from the beginning, wouldn't you get stuck in an endless loop? 🙂
If you want proof and don't trust the documentation you could simply write to the log before and after the yield.
If you don't see the first log message twice, you've proven your point.
e
Ask him to prove that it's wrong?
Feels like the burden should be on him; you don't get to say "I don't believe that thing" without also providing contrary evidence
true news 3
m
they must have some reason to believe that…right? a tiny looped schedule script that creates some records, and manually yields can demonstrate it works fine in isolation. but for the specific use case definitely start from the problem and work back to the cause.
m
I appreciate all of your replies. I know the yielding is working as designed, but there is one script in particular which has him concerned so I may have to do some code review on that. @Seth Duda I love the simplicity of 'if you don't see the first log message twice you've proven your point' @erictgrubaugh I have asked him to provide proof, which he hasn't and yet whenever the topic is brought up I still get this back and forth with him. I think it's a
him
problem and maybe there's not much I can do about it but I really do appreciate all of your feedback on this.