10.6. How to group several Actions into one unique Action?

<< Click to Display Table of Contents >>

Navigation:  10. FAQ >

10.6. How to group several Actions into one unique Action?

 

Or, to rephrase the question: “How to create a (sub) graph, parametrize the (sub)Graph and associate it with a new Action (i.e. with a new Icon)?

 

Let’s take a concrete example: Let’s assume that we have a serie of Actions that peforms various quality checks on your data. We want to isolate this serie of Actions inside a (sub)Graph and run the (sub)Graph on different datasets. So, instead of having:

 

clip0390

 

… we would rather want:

 

clip0391

 

 
…where we isolated inside a graph named “do_check.anatella” the code (i.e. the Actions) that actually performs the check. We can see that the graph named “do_check.anatella” has two “Global Parameters”:
 

datain

fileout

 

 
Let’s have a look at the graph named “do_check.anatella”:

 

clip0392

 

To create the above graph, we simply copied the original .anatella file and, thereafter, we edited the copy: i.e. we removed all the uninteresting Actions, to keep only the Actions that are performing the check.

 

The name of the .gel_anatella file to check is defined using the “Global Parameter” named “datain”: number1

 

The name of the text file that contains the outcome of the check is defined using the “Global Parameter” named “fileout”: number2

 

 

During the time required to develop&test the graph “do_check.anatella”, we can assign to the two Global Parameters named “datain” and “fileout” some default values. These values will be very useful for testing the graph:

 

clip0393

 

We can now even go one step further: To get a higher execution speed, we could execute all the checks simultaneously (i.e. in parallel) in this way:

 

clip0394