Workflow Related

Arun Priya
Tera Contributor

Hi, 
I have a requirement in which I need  to check value of a variable in the sc_task in the workflow where the workflow table is Req_item. By checking this value it needs to trigger a notification to the end users.

Please let me know anyone has the idea.

 

11 REPLIES 11

Brian Lancaster
Tera Sage

Variables display on the sc_task table but are related to req_item. So if you change a variable on the sc_task it will update the variable on the req_item. So you should be able to detect and trigger the notification base on the variable in the req_item.

Hi Brian, 

I have given the below code in wait for condition. Once the below condition is satisfied it needs to trigger  notification.  

 

if (current.variables.status == 'In progress') {
answer = true;

} else {
answer = false;
}

Is there really a variable for status? Why are you not using state? Can you share some screenshot of your variables and your wait for condition?

It is a variable in catalog item. If the condition is satisfied it needs to trigger notification. When it is changed in RITM level it is working. But in sctask it doesn't work

ArunPriya_2-1745508750247.png