How is the activity conditions value set for catalog task activities?

sherard
Mega Expert

Need assistance with workflow activity catalog tasks. I need the workflow activity catalog task to accept additional conditions. I can add new conditions to the activity, but it is not accepting it and the catalog task activity just sits there. Am I missing something?

So I have a new state value of 'Failed' with db value as 15 as part of my Catalog Task status field. I created a condition in my workflow catalog task activity to look at activity.result == 15. So, when I run my workflow, update the created catalog task state value to 'Failed' (15), I would expect the catalog task activity to accept the new condition. am i doing this wrong?

1 ACCEPTED SOLUTION

Something about this bugs me.   If you set the condition so that the state value is 4 and it works, that means there's a business rule that's touching hte parent workflow again.



Here's something to try.   Build a temporary business rule on sc_task table.   Copy the contents of "SNC - Run parent workflows" business rule.   Make your conditions current.active.changesTo(false).   That rule will essentially tell the parent workflow to check if it needs to proceed when you set an SC_Task to inactive.



Also... that got me thinking.   This is a Catalog Task activity right?   And that new state is a state on the Catalog Task table?


View solution in original post

23 REPLIES 23

LOL I was wondering that too now. I'm not sure how that is working for you.



But hey it works for you your way! and it works for me my way! As long as the junk works, that's all that matters I guess!


Ravi Prasad1
Tera Guru

Hi,



Please refer below thread it was same question.



Add new condition for a catalog task activity



Close the thread by making answer correct


I saw this and read through it. Tried to duplicate steps. However, still not working so this was not helpful to me.


sherard
Mega Expert

Still no resolution for this one...



Can someone explain how do the conditions values in the catalog task activity get set? My workflow activity for catalog task is just waiting or sitting there expecting one of these conditions but not sure how the condition gets set to move the workflow along.