Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

how to write conditions for create task activity

Rajyalakshmi
Mega Guru

I have one query ,can you please help.

I have one workflow attached in sc_task table.i am unable to use catalog task activity in this workflow ,so i have used create task activity and mapped the table as sc_task.now in this create task activity how to write conditions for close complete and close incomplete.

i tried activity.result='3'//close complete and activity.result='4'// close incomplete .But my workflow got stuck ,it is not moving to next activity.

5 REPLIES 5

Nilesh Pol
Kilo Sage
Kilo Sage

@Rajyalakshmi 

Have you used "wait for condition" activity after "create task" activity.?

if no, then add "wait for condition" for sc_task table and add condition State is one of "close complete OR incomplate"

 

You’ll need to store the created task’s sys_id into a variable using the “Create Task” output — usually activity.result holds the sys_id of the created record