Change record status: 
Project: 
Introduced in branch: 
7.x-2.x
Introduced in version: 
7.x-2.x
Description: 

When caching is enabled, (e.g., Entity Cache), the Scheduled Transition is not refreshed.
Until the caching is supported, and the Scheduled Transition can be attached to any entity for any field, The Scheduled Transition is now loaded on the form itself, and not on hook_node_load.
This is how to load the Scheduled Transition yourself:

    // Add scheduling information.
    // Technically you could have more than one scheduled, but this will only add the soonest one.
    foreach (WorkflowScheduledTransition::load('node', $node->nid, $field_name = '', $limit = 1) as $scheduled_transition) {
      // Add the scheduled_transition as an object.
      $node->workflow_scheduled_transition = $scheduled_transition;
      // @todo: remove the separate '$node->workflow_scheduled' properties.
      $node->workflow_scheduled_sid = $scheduled_transition->sid;
      $node->workflow_scheduled_timestamp = $scheduled_transition->scheduled;
      $node->workflow_scheduled_comment = $scheduled_transition->comment;
    }
Impacts: 
Site builders, administrators, editors