Config is Nothing

Hi

What happen if we change the condition “Config is Nothing” in initialization state where it goes or what happen

Please someone explain this

Thanks in advance

@jai_kumar2

Ideally that is used to underatand if the initialize state is running for the first time or if it is running because of a system exception in process state

If we do not check that then config would be read every time any any one time initializations might happen multiple times …

Generally it is not preferred because when there is a system exception all the variables should not be reinistalized but only perform few tasks like login or open applications to be run

And config is used because ideally initially the config eill be emtpy and initallsettings run inside the if condition you highlighted and the config will get all the values

It is a part of framework to initialize the details needed only once

Sometimes we do taska liek adding queue items and all also in the same if condition so that they added only once but jot everytime a system exception occurs

Hope this helps

Cheers

Hi @Anil_G Thanks for the reply

i get what you said but my question is what happen if we remove or change the condition so where the process flow go and what will happen

@jai_kumar2

If you remove that condition…whatever is inside that condition will be executed always when a system excetion occurs also in process xaml…and config will
Be re read…

If no changes are made to original workflow…the config will be re read and queue name also would be re read…and you will get the start logs again as they also stay in it

If you are not using it for any other things then there would not be any issue even if you remove…

If you make any changes to config then they would be lost

If you make any changes to condition dependign on the condition it will go to else or then …in else jothing happens…only in then side the values are re read

Cheers

So if you remove this condition, the first run would always run and read config file and do all those actions which are there in first run block, so to avoid that we have condition Config is Nothing which only run once for the enitre run.

Reach out if you need any more clarity on the same.

Cheers…!

Hi @jai_kumar2

Just out of Curiosity, what are the reasons that you wanna remove it or change it.
If the condition is satisfied only then the activities inside the then section would be executed.

So just wanted to understand, what do you wanna achieve by removing or changing the condition.
And what is it that you wanna change it to.

Thanks :slight_smile:
Happy to Help!