Workflow in Geoweaver
What is Workflow?
In Geoweaver, Workflow denotes a pipeline linking multiple (>2) Processes. An isolated Process (not connected to any other Processes) is allowed in Geoweaver.
WARNING: Loop is not allowed among the child Process nodes. The Workflow graph is directed and acyclic (please refer to this link to learn more about Directed Acyclic Graphs).
Create and run a workflow
-
Click twice on the plus icon button under any process (e.g.,
helloworld
Python process created in the Process tutorial). The main work area will switch to the "Weaver" tab, and two circles containinghelloworld
should appear in the workspace. -
Link the two circles by dragging from one circle and dropping on another circle while pressing
SHIFT
on the keyboard. -
Click the plus button in the toolbar floating in the 'Weaver' workspace. In the popup window, input
HelloWorldWorkflow
for the workflow name, and typeTesting hello world
in the Description field. ClickConfirm
. -
To run the workflow, click the play button in the toolbar floating on the 'Weaver' workspace. In the popup window, select
one-host
option. Chooselocalhost
and set the environment todefault
. ClickRun
. -
In the password dialog box, enter the password for localhost.
Note:
If you get an incorrect password error, password resetting instructions are discussed here -
While the workflow is in execution mode, you can see:
- Blue - This means the process is waiting
- Yellow - This means the corresponding process is running
- Green - This means the process execution is finished
- Red - This means the process execution failed for some reason.
-
Double-click on the circles to check the real-time output. If users need more details, click
Details
button in the popup Process information window.
Export and Import a workflow
To export a workflow into a zip file:
-
Choose a workflow in the Workflow tree menu and click on it.
-
Click the downward icon button in the floating toolbar when the workflow is present in the Weaver workspace.
-
There will be four downloading options:
workflow with process code
orWorkflow with Process Code and Only Workflow History
orWorkflow with Process Code and Only Successfully Done History
orworkflow with process code and history (Recommended)
. The first option will only download the source code and workflow json. The second option will only download source code the only the workflow history, without process history. The third option will download the source code and only the completed execution history of the workflow without the details of failed executions. Finally, The last option will download not only the source code and workflow but also all the historical details of the previous execution of the workflow. The last option is recommended. -
Click
Confirm
. A ZIP file will be automatically downloaded to your machine.
To import a shared workflow:
-
Click the upward icon button in the floating toolbar of Weaver. In the shown window, click
Open the File Browser
and choose the Geoweaver ZIP file you received. ClickStart
. -
Once the uploading is finished and the workflow file is valid, it will as,
The upload workflow is valid. Do you want to proceed to save it into the database?
ClickOK
. -
The workflow will be automatically loaded into the Weaver workspace and ready for execution and reuse. If you check the process and workflow history, you will see that all the previous logs are also there.
Congratulations! you have learned how to create, run, export, and share a workflow in Geoweaver!