onBeforeCall and onAfterCall

Avatar

Avatar
Validate 1
Level 1
Ramaswami
Level 1

Likes

0 likes

Total Posts

100 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile

Avatar
Validate 1
Level 1
Ramaswami
Level 1

Likes

0 likes

Total Posts

100 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Applaud 5
View profile
Ramaswami
Level 1

04-09-2020

I see these two functions used in javascript node and written some code under these functions ( they defined the function ) 

like for example: 

 

in the javascript node of a workflow they added : 

function onBeforeCall() {
logInfo("task.activity:" + task.activity);

if ((activity.img.indexOf("nms:activities/delivery.png") != -1) || (activity.img.indexOf("nms:activities/email.png") != -1) || ((activity.img.indexOf("nms:activities/notification.png") != -1) && (task.activity == 'notification'))) {

 

// some code 

}

 

but i can't see where they called this function. Are these two functions called automatically OR these two functions are inbuilt functions. Where can i see them called but the code which is under this function gets executed when the workflow runs. 

 

i can see in some places in logs onAfterCall : 

 

Ramaswami_0-1599235217434.png

 

Is there any documentation available on these functions. 

 

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

171 likes

Total Posts

931 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile

Avatar
Give Back 50
Employee
Sukrity_Wadhwa
Employee

Likes

171 likes

Total Posts

931 posts

Correct reply

35 solutions
Top badges earned
Give Back 50
Validate 1000
Validate 500
Validate 250
Validate 100
View profile
Sukrity_Wadhwa
Employee

24-09-2020

Hi @Ramaswami,

Were you able to resolve this query with the given solution? Do let us know.

Thanks!

Avatar

Avatar
Validate 1
Level 1
nitesha38268385
Level 1

Likes

0 likes

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile

Avatar
Validate 1
Level 1
nitesha38268385
Level 1

Likes

0 likes

Total Posts

15 posts

Correct reply

0 solutions
Top badges earned
Validate 1
View profile
nitesha38268385
Level 1

07-09-2020

Hi @Ramaswami ,

 

Can you please check in the advance tab of the activity.

 

By Right Click on the activity -> Open -> Advance Tab.

 

Regards,

Nitesh.