NXP-11739: improve SetWorkflow var to check the context for a current workflow too