This example shows how the Alien4Cloud go client can be used to get the status of a workflow execution.
An application has been deployed as described in Create an deploy an application example.
Build this example:
cd examples/get-workflow-status
go build -o wfstatus.test
Now, run this example providing in arguments:
- the Alien4Cloud URL
- credentials of the user who has deployed the application
- the name of the application
- the name of the workflow for which to get the status.
For example, to re-use the Forge Web application sample deployed in Create an deploy an application example, which is providing workflows Install, killWebServer, stopWebServer, startWebServer, this would give :
./wfstatus.test -url https://1.2.3.4:8088 \
-user myuser \
-password mypasswd \
-app myapp \
-workflow install