Hi,
I decision block you input a boolean expression. This expression follows scripter rules, which means it uses pascal syntax and can use any function registered in script, and also of course the workflow variables can be used. So the decision block will take the path depending if the boolean expression evaluates true or false.
Suppose a decision block is add after a script. When will the decision block be executed? Is this done after the script is completely executed (including some external processing of code, like creating a file and storing the recordno of the created file into a WF-var)?
Yes, one block starts executing only after the previous block is completely executed. So the script must finished until execution flow hits the decision block. So, if your Script block updates the value of RecordIDCreated variable, it will run just fine.
Ok, thank you very much.