gs.getSession().isInteractive() not working properly

RohanBathla
Tera Contributor

Hi I am using below code in one of my BR to check the update condition on task. below is the code which I am using but when I put logs i see that if condition was not matched.

 

!current.cat_item.u_partner_correlation_id.nil() && gs.getSession().isInteractive()&& current.cat_item.u_partner_name =='XYZ'

 

I am suspecting it might be due to gs.getSession().isInteractive(). Can you help me with correcting the condition ?

 

Thanks

Rohan

1 ACCEPTED SOLUTION

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

You can just log all three in the script part of the BR and remove it from condition to test.

-Anurag

-Anurag

View solution in original post

9 REPLIES 9

Anurag Tripathi
Mega Patron
Mega Patron

Hi,

You can just log all three in the script part of the BR and remove it from condition to test.

-Anurag

-Anurag

sure we can test that will post the outcome

Hi Anurag,

 

Thanks for your suggestion actually the issue was with current.cat_item condition BR is on sc_task so this had to be dot walked.

 

Regards,

Rohan

So is this answered now? If so then close the thread by marking the appropriate answer as correct.

-Anurag