GithubHelp home page GithubHelp logo

workflowengine's Introduction

Login to System (POST)

Method that accepts username and password, returns a token. this token to be put in the header of every subsequent request

http://localhost:8000/rest-auth/login/

Create a New Flow (POST)

This API creates a new Flow with access to the flow given to the user.Extract Flow ID from the API Below. This uniquely designates a Flow

http://localhost:8000/createFlow

Get Pending Flows (GET)

This gets all flows that are currently incomplete and the current logged in user plays a role in them. Extract Flow ID from the API Below. This uniquely designates a Flow. You can have multiple flows pending

Get Pending Transitions in a Flow (GET)

This Gets the current pending transition/stage within the flow. This does not filter if the flow is to be actioned by current logged in user. This API is made to ascertain if there is anything pending that belongs to the user, in a specific flow.Each flow has a source and destination ,extract Source Stage ID from the API below
http://localhost:8000/getTransition/<flow_id>

Get Specific Fields in a Stage ( Every flow has the same fields in the same stage, so flow ID is not required) (GET)

Each Field will have a Unique key called Formfield, which identifies the field in this specific stage. It also has field details for rendering, and fields are sorted as the user expected them to be.
http://localhost:8000/FormFieldsByStage/<int:stage>

Get Completed Field Data by Flow and Stage (GET)

Extract Field Data by Flow and Stage
http://localhost:8000/getFieldData/<int:flow_id>/<int:stage>

Get Specific Field Data by Flow and formdata_id(GET), and also update it (POST)

Once you get the form fields, it is necessary to fill them up if they were saved by draft, or if the user went away form the app. You can extract data field wise and refill it.
http://localhost:8000/RetrieveUpdateFormData/<int:flow_id>/<int:formdata_id>

Create A specific Field Data(POST)

Once you get the form fields, some fields will be empty. You need to create the data for the formfield and the flow. Once it is created, revert to updating it.
http://localhost:8000/createFormData/<int:flow_id>/<int:formfield>

Validate and Approve a Stage (GET)

Server side validation is performed which returns if the data is valid for a field. If everything checks out, the stage finally gets approved
http://localhost:8000/approveStage/<int:flow_id>/<int:stage>

workflowengine's People

Contributors

rupin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.