Setting state before triggering a custom workflow - sometimes state not set

Hi all

Hoping someone can help. I have a workflow that sets a state and then triggers a custom workflow. Sometimes the custom workflow is triggering and what I’ve set in the state isn’t pushing through. Is it possible for the custom workflow to trigger before the state has been set? Should I add a pause before the custom workflow and if so how long for?

Thanks in advance

custom events trigger only after all the steps before them have been completed

as long as the state is before the custom event it should trigger fine

to enforce it you could pass the states value into the custom event… although this shouldn’t be necessary

there may also be something else clearing the state/changing it