Skip to content

zenaton/conference-2020-01

Repository files navigation


Workflow builder for Developers
Explore the docs »
Website · Node.js Library · Tutorial in Node.js

Examples From Zenaton User Conference of January 2020

This repository contains examples of workflows built with Zenaton and presented during our conference in January 2020.

Installation

Download this repo

git clone https://github.com/zenaton/conference-2020-01.git && cd conference-2020-01

then add an .env file

cp -n .env.example .env

and populate it with your application id and api token found here. Install dependencies

yarn

Running on Docker

Simply run

docker-compose build; docker-compose up

You can check that your agent is running here.

You're all set!

Running Locally

Then, you need to install the Zenaton agent

curl https://install.zenaton.com | sh

and start it, and make it listen to your configuration:

zenaton start; zenaton listen --env=.env --boot=boot.js

You're all set!

Your workflows will be processed by your worker, so you won't see anything except the stdout and stderr, respectively zenaton.out and zenaton.err. Look at these files :)

Example 1: Use of this.date() helper

node launch_date.js

Example 2 : Use of this.random() helper

node launch_random.js

Example 3: Example of sequential processing of a child workflow

node launch_parent.js

Example 4: Example of parallel processing of child workflows

node launch_parallel_parent.js

Example 5: Example of versioned workflows

node launch_version.js

Uncomment "VersionWorkflow_v1" or "VersionWorkflow_v2" in boot.js file in order use different versions.

Example 6: Example of document validation workflow

node launch_document.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published