#
# Description: This method updates the service provisioning status
# Required inputs: status, status_state
#

$evm.log("info", "===========================================")
$evm.log("info", "Listing ROOT Attributes:")
$evm.root.attributes.sort.each { |k, v| $evm.log("info", "\t#{k}: #{v}") }
$evm.log("info", "===========================================")

prov = $evm.root['service_template_provision_task']

# Get status from input field status
status = $evm.inputs['status']

# Update Status for on_entry,on_exit
if $evm.root['ae_result'] == 'ok'

  # Check to see if provisioning is complete
  if status == 'provision_complete'
    message = 'Service Provisioned Successfully'
    prov.finished(message)
  end
  prov.message = status
end

# Update Status for on_error
if $evm.root['ae_result'] == 'error'
  prov.message = status
end

#
# Description: This method updates the service provisioning status
# Required inputs: status
#

prov = $evm.root['service_template_provision_task']

# Get status from input field status
status = $evm.inputs['status']

# Update Status for on_entry,on_exit
if $evm.root['ae_result'] == 'ok'

  # Check to see if provisioning is complete
  if status == 'provision_complete'
    message = 'Service Provisioned Successfully'
    prov.finished(message)
  end
  prov.message = status
end

# Update Status for on_error
if $evm.root['ae_result'] == 'error'
  prov.message = status
end

Remove root object logging from service class update status method.
Remove root object logging from service class update status method.
