The reason for not getting the state value is in UpdateAttribute processor you have selected Store State property value as "Do not store state" in this case processor doesn't get the state value.
To resolve this issue:
Change the UpdateAttribute processor configs to
Store state locally
Then auto terminate (or) connect set state fail connection to get notified in case of an failures happend.
Try to run and check are you able to get the state value or not.
If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.