Notice the template syntax. The function syntax is known in JavaScript as a self-invoking function or an Immediately Invoked Function Expression (IIFE). The function is immediately invoked after it is defined. ServiceNow manages the function and when it is invoked; developers do not explicitly call Business Rule scripts.
Reference Link: https://developer.servicenow.com/dev.do#!/learn/learning-plans/utah/new_to_servicenow/app_store_learnv2_scripting_utah_business_rule_scripts
Notice the template syntax. The function syntax is known in JavaScript as a self-invoking function or an Immediately Invoked Function Expression (IIFE).
"The template's process function, known as a self-invoking or immediately invoked function expression, is automatically invoked when a resource is accessed."
https://developer.servicenow.com/dev.do#!/learn/learning-plans/rome/servicenow_application_developer/app_store_learnv2_rest_rome_resource_script
D, that´s an IIFE which stands for inmediately invoked Function Expression
upvoted 4 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
nsmcan
Highly Voted 3 years, 2 months agoHmzpkts
1 year, 2 months agoVinothkumar_Rangasamy
Highly Voted 2 years, 10 months agoA7mad5aled
Most Recent 1 week, 6 days agochuks100
7 months agobrutaltea
1 year, 2 months agoravidamarla
1 year, 2 months agoAnu_K
1 year, 4 months agoSarojPatel
1 year, 10 months agoX_Venkat
1 year, 11 months agoBob_Loblaw
2 years agoamineHTB
2 years, 2 months agorpersonal2
2 years, 2 months agorpersonal2
2 years, 2 months agoFarnous
2 years, 4 months agoGurubala
2 years, 4 months agoparcerocarl
2 years, 7 months ago