compute_node = state_change['object']
portal = compute_node.getPortalObject()
person = portal.portal_membership.getAuthenticatedMember().getUserValue()
compute_node.edit(
  capacity_scope='open',
  source_administration_value=person,
  upgrade_scope='auto',
)

# Keep this extra call separated to be compabible
# with interaction workflow whenever this is 
# updated.
compute_node.edit(
  allocation_scope='open/personal',
)

portal.portal_workflow.doActionFor(compute_node, 'validate_action')
