Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Activate Container Conditionally

ricoo
8 - Asteroid

Hi All,

 

I have a workflow (attached) where I need to conditionally activate/deactivate a tool container based on a condition. In the workflow attached, I have 3 datasets – “Product”, “Supplier”, and “Stock”.

 

00.png

 

The condition will be manually setup via a Text Input. I know this can be done by using Analytic App and/or Macros but I’m avoiding to use them for specific reasons.

 

In order to activate the dataset(s) that I need to process, I’ll have to edit this Text Input tool and supply “1” in the active column

 

01.png

 

I have a process prepared for me to determine which container(s)/dataset(s) I’d like to activate:

 

02.png

03.png

 

My problem is, how will I activate/deactivate a container based on the values?

 

From the screenshot above, the field ActivateProduct =1 so the “Product” container should be active; the field ActivateStock=0 so the “Stock” container should be deactivated; and the ActiveSupplier= 1 so the “Supplier” container should active.

 

All the containers will be deactivated to begin with because the real input files are just too huge, and I’m avoiding them to be processed all at the same time because it will cause the workflow to become really slow.

 

Is this possible by not using Analytic App/Interface Tools/Macros?

 

PS: I'm posting this on a late Friday evening, so apologies in advance if I can't respond immediately. Thanks!

2 REPLIES 2
ChrisTX
16 - Nebula
16 - Nebula

Instead of using a regular Container, check out the Control Container tool under the Developer category.  It's built to control the order of the flow.

 

See this help article: https://help.alteryx.com/current/en/designer/tools/developer/control-container-tool.html#control-con...

 

Chris

ricoo
8 - Asteroid

Hi @ChrisTX . I'll check this. Yeah I think this is what I'm looking for. Thanks!

Labels
Top Solution Authors