Create catalog task only when variable is selected

Michelle Romano
Tera Contributor

Can anyone provide information on how I would create a catalog task only when a variable is selected?  Currently, there are two tasks that are generated all the time, but only one needs to provision if the other variable is not checked at the catalog request.  I think there needs to be a business rule, but not sure how to create it.

2 ACCEPTED SOLUTIONS

Rajesh Chopade1
Mega Sage

Hi @Michelle Romano 

 

You need to add 'if' activity in your workflow where you can check the variable is checked or not and proceed with task creation accordingly.

 

Hope so this will helps you.

 

thank you

Rajesh.

View solution in original post

Hi @Michelle Romano 

 

In your catalog you will see the workflow which is attached to catalog item:

 

workflow-name-in-scat.PNG

 

You need to open that workflow and in that you need to add 'if' activity. ie.

workflow-if-activity.PNG

You need to drag 'if' activity and drop where you want in your workflow. Also you need to add condition in that where you need to check variable is checked or not.

workflow-if-activity-conditions.PNG

 

This 'if' activity will show you 'Yes' and 'No' options in workflow, you can redirect the flow according to your conditions.

 

I hope this will resolve your issue.

 

Thanks

Rajesh.

View solution in original post

4 REPLIES 4

Rajesh Chopade1
Mega Sage

Hi @Michelle Romano 

 

You need to add 'if' activity in your workflow where you can check the variable is checked or not and proceed with task creation accordingly.

 

Hope so this will helps you.

 

thank you

Rajesh.

Hi Rajesh,

Are you saying to change the if activity in the task condition or write the condition in a business rule?

Michelle

 

Hi @Michelle Romano 

 

In your catalog you will see the workflow which is attached to catalog item:

 

workflow-name-in-scat.PNG

 

You need to open that workflow and in that you need to add 'if' activity. ie.

workflow-if-activity.PNG

You need to drag 'if' activity and drop where you want in your workflow. Also you need to add condition in that where you need to check variable is checked or not.

workflow-if-activity-conditions.PNG

 

This 'if' activity will show you 'Yes' and 'No' options in workflow, you can redirect the flow according to your conditions.

 

I hope this will resolve your issue.

 

Thanks

Rajesh.

Rajesh,

 

This worked perfectly.  Thank you.

 

Michelle