Skip to content

Echo4F/workflows-templates

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Templates for Workflows!

Templates are pre-built automated business processes that can be imported in Okta Workflows. New workflow templates submitted to this repo can be published to the Okta Workflows console.

Getting Started

How to submit Workflows Template

  • Open Okta Workflows and design the intended business process. This can be distributed across one or more workflows and tables. Keep all related workflows and tables in the same folder.
  • Export the folder containing the business process by clicking the gear icon on the folder and selecting Export.
    • Rename this file to workflow.flopack
  • Next, we’re going to create the files necessary for submitting your template to this repository. Each template will have three files: the template, a readme, and a workflow.json file that stores some metadata. You can find an example of the structure here.
  • Create a workflow.json file with the following information.
    • name - The name of your template. Treat this as a unique identifier (eg suspend_inactive_users)
    • title - The title of workflows template that will appear in the product.
    • description - template description
    • connectors - list of connectors used by this template. Connector names are app names seen in workflows designer. Connector names should be in lower case. You can find a list of the connector names here. [insert link to readme doc]
    • links - Links to documentation or videos for this template
  • Finally, create a readme.md file that has the setup documentation for your template. It should be written in markdown and follow the structure outlined here.
  • Use following directory structure to organize workflow.flopack, workflow.json and connector.json workflows/ <my_shared_workflow>/ workflow.json workflow.flopack readme.md
  • Create a new folder under the following directory. Place the three files (readme, workflow.json, and workflow.flopack) into this new folder.

Guideline on file/folder structure before submitting Workflow Template

  • Folder name needs to be lower case and separated with underscore (regex: ^[a-z0-9_]{2,50}$ e.g create_report_google_sheets).
  • Each published file (mentioned below) in workflow folder needs to be in lower case.
    • readme.md
    • workflow.flopack
    • workflow.json
  • Files such as workflow.flopack and workflow.json needs to have valid JSON structure.
  • Workflow name needs to have matching folder name.
  • Workflow name has a limit of 50 characters.
  • Workflow should have valid connector names which are referenced in connectors.json file
  • Verify if video and documentation links in workflow.flopack file refers to same folder structure

How to SKIP CI process

  • Add [skip ci] or [ci skip] in commit message in case blocked by CI. Although, this is not recommended but if build is queued for longer time or need to merge template due to urgent fixes, it is probably OK to do so.

  • Change the last commit message with command git commit --amend. Add [skip ci] or [ci skip] to commit message

  • Push the remote branch with force -f option e.g git push -f origin <branch-name>

  • Test CI script on local setup

    Install dependencies (one time only)

    • npm install ajv@7.0.3
    • npm install shelljs

    Run below script from root of git repo to test remote branch. All files should have commit to diff with master

    • git checkout remotebranch
    • node scripts/schema_validate.js remotebranch
    • sh scripts/travis_release.sh remotebranch

Releases

No releases published

Packages

No packages published

Languages

  • Shell 77.4%
  • JavaScript 22.6%