Passing status variables b/w custom resource and a recipe

Is it possible to pass node attibutes from a cutom resource to a recipe.There is a usecase like below:

recipe_modify.rb::

            my_custom_resource 'my custom resource' do
               // do config changes if any of the current properties are changed
            end

            include_recipe 'abc'  if node['system_updated']

my_custom_resource.rb::

       action :update do
          if current_resource_changed?
             node.run_time['system_updated']
             //update
         end
       end

This doesn’t work since the recipe if condition getting executed in the compile time only.Any suggestions here??

Thanks

This is not possible because of Chef’s compile-and-converge model. See https://coderanger.net/two-pass/ for details.