The CreatorCon Call for Content is officially open! Get started here.

Setting activity.result to other states in workflow

Musab Rasheed
Tera Sage

Hi,

I'm badly stuck at one point in Workflow , basically in catalog task activity i have added two conditions , one for complete 'activity.result == 3' and another for pending 'activity.result == -5'

. but the problem is it is not executing the pending part , i tried to do lot of work around but nothing works. kindly help me on this. please see screenshots below.

Capture.JPG

Capture.JPG

Please hit like and mark my response as correct if that helps
Regards,
Musab
1 ACCEPTED SOLUTION

Hi Musab,



Looks like pending would not be validated as part of the activity.result. Please refer the screen shot.



find_real_file.png



They document clearly tells the possible result values are.. Refer this documentation.



Catalog Task workflow activity



The listed states works correctly except the pending. Please mark as helpful or correct if it helped you get a answer.



Regards


Param


View solution in original post

9 REPLIES 9

Hi Paramahanns,



There is a problem if you add additional conditions other than close complete , close incomplete and close skipped , here in WF i have added pending but it is not at all triggering to next activity . i checked BR named 'SNC - Run parent workflows' in this they have specified condtions i added mine but still it is not triggering. I'm litiraly clueless here. see my WF screenshot below. in WF it got stuck if I'm changing my SC_TASK status to pending.



Capture.JPG


Please hit like and mark my response as correct if that helps
Regards,
Musab

Thanks Musab,



Can you check with the state has the value that you mentioned as 21.



find_real_file.png




Go to the choices of the state field on sc_task and see if you have the value set of what ever you are referring the workflow. Also You have two conditions right, completed, Pending. Is that it works for complete and you face the problem when you   it is changed to pending state. or does not work for both.



Regards


Param


Hi Paramahanns,



Complete is working fine , the only problem is with Pending state. i have given proper value as well.



Thanks


Please hit like and mark my response as correct if that helps
Regards,
Musab

I am unable to find the reason. If any body else has some thought please reply.



Regards


Param


Hi Musab,



Looks like pending would not be validated as part of the activity.result. Please refer the screen shot.



find_real_file.png



They document clearly tells the possible result values are.. Refer this documentation.



Catalog Task workflow activity



The listed states works correctly except the pending. Please mark as helpful or correct if it helped you get a answer.



Regards


Param