Usage
Running a workflow
Run your first workflow.
Jyfti runs remote and local workflows. The preferred way of developing workflows is within a local Jyfti project.
Initialize a Jyfti project within your current directory.
This results in a jyfti.json
to be created where the configuration for your Jyfti project resides.
Then, generate your first workflow.
The workflow is generated into the sourceRoot
directory as retrieve-readme.json
.
It serves you as a foundation to create your first productive workflow.
Run the workflow to completion.
Jyfti prompts for inputs that the workflow expects. Note that inputs can also be passed directly.
Step-by-step execution
While jyfti run <name>
executes a workflow from start to finish, Jifty can also execute a workflow step-by-step persisting intermediate states to disk.
A step-by-step workflow run is created via the create
subcommand.
The create
subcommand validates the input and writes the initial state to disk.
The run can get advanced with the step
subcommand.
At any point, the status, the state and the variables can be requested.
A call to complete
runs it to completion.
Environments
Besides inputs, a workflow run accepts an environment.
While inputs are passed as values, an environment is passed as a reference to an environment file.
The environment files are stored in the environment directory defined via envRoot
in the jyfti.json
.
You can list the existing environments.
Even if no environment files exists, there is always the default environment. This environment is also used each time an environment is not explicitly passed.
An environment is a JSON object where each key can be assigned an arbitrary json value. It can be viewed which prints the environment file.