If you have not worked with workflows yet, you can visit this article and get an overview of creating workflows. In this article, we will introduce you to the common structure of a “Start with empty graph” workflow in Soley Studio.
When running a workflow, there are two fundamentally different starting scenarios. You either start with an empty graph, meaning your first step has to be the import of data or of an existing graph to then run any analysis step on it. This is pretty much always the case for your first workflow in a sequence of workflows. However, it might also be used for consecutive workflows. In this case, you want to use the “Start with empty graph” workflow structure. Alternatively, you already have a graph open and want to do a consecutive analysis step with this graph as input data. That is where you want to use the “Start with current graph” workflow structure.
Table of Contents
A “Start with empty graph” workflow will create a new graph file with the activity CreateViewFromStartupProject. Next, a graph transformation, that should include the import of data or a graph, is carried out with the Run Transformation activity. The calculated graph is then passed to the GetGraph activity for further use. Finally, the workflow sets the graph to the view with the SetGraphToView activity and (optionally) applies a layout to the graph with the ApplyLayout activity. Have a look at our activities article for more explanation of each activity or proceed with a detailed description how to build the workflow below.
How to build the workflow
To create a new workflow, right-click on the Workflows folder in the Solution Explorer , choose “New File” and then click on “Start With Empty Graph” (2) in the Worflow Category (1). Give your workflow a name (3) and click on create (4).
After creating a new workflow, you need to give some input parameters so that the workflow can actually be run. Each activity that requires your attention is highlighted with a red exclamation mark. All other activities can be left as is. In the case of a “StartWithEmptyGraph” workflow, you need to fill in some parameters in the following activities:
Here, you give the sequence or the rule that will be executed in the workflow. It also needs to be a string.
It might be that your sequence needs input variables. These will be entered in the Arguments. The arguments are created by filling in the marked parameters:
Here, you will give the ViewTemplate that will be shown when the graph is created. Generally it will be the same ViewTemplate used in point 1.
If you want to check all the workflow activities, you can visit this article.