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, 1 month agoHmzpkts
1 year agoVinothkumar_Rangasamy
Highly Voted 2 years, 8 months agochuks100
Most Recent 5 months, 3 weeks agobrutaltea
1 year, 1 month agoravidamarla
1 year, 1 month agoAnu_K
1 year, 3 months agoSarojPatel
1 year, 9 months agoX_Venkat
1 year, 10 months agoBob_Loblaw
1 year, 11 months agoamineHTB
2 years, 1 month agorpersonal2
2 years, 1 month agorpersonal2
2 years, 1 month agoFarnous
2 years, 3 months agoGurubala
2 years, 3 months agoparcerocarl
2 years, 5 months ago