I have a site selling edit access to specific nodes. The site uses Drupal 7, Commerce, Commerce License (selling a Role with edit permission), Rules and Flag. On the Add to Cart I have a Line Item Entity Reference where the customer selects the Node they want access to. Upon payment a 12 month license is generated and the Role with edit permissions is added to the User. That all works fine.
Here's what I need: When the payment is successful I need a Rule to trigger and set a Flag (premier_listing) on the Node that was selected during the Add to Cart process. However I can't seem to access the Node Entity in Rules or access the Line Item Entity Reference that the User selected. Anybody have an idea how this could be done? Thanks