Giter Site home page Giter Site logo

workflow-catalog's Introduction

ProActive Workflow Catalog

Build Status Coverage Status

The purpose of the workflow catalog is to store ProActive workflows.

A workflow catalog is subdivided into buckets.

Each bucket manages zero, one or more versioned ProActive workflows.

Building and deploying

You can build a WAR file as follows:

$ gradle clean build war

Then, you can directly deploy the service with embedded Tomcat:

$ java -jar build/libs/workflow-catalog-X.Y.Z-SNAPSHOT.war

The WAR file produced by Gradle can also be deployed in the embedded Jetty container started by an instance of ProActive Server.

Samples

Available resources can be listed and tested with Swagger:

http://localhost:8080/swagger

Below are some REST invocations using HTTPie.

Bucket resource

Creating a new bucket named test:

$ http -f POST http://localhost:8080/buckets name=test

Getting information about bucket with identifier 1:

$ http http://localhost:8080/buckets/1

Listing available buckets:

$ http http://localhost:8080/buckets

Listing available buckets targeting page 42:

$ http http://localhost:8080/buckets?page=42

Workflow resource

REST actions related to existing workflows apply to the latest revision of the identified workflow.

Adding a new workflow in bucket with identifier 1:

$ http -f POST http://localhost:8080/buckets/1/workflows file@/path/to/workflow.xml

Getting workflow metadata for workflow with identifier 1 in bucket with id 1:

$ http http://localhost:8080/buckets/1/workflows/1

Fetching workflow XML payload for workflow with identifier 1 in bucket with id 1:

$ http http://localhost:8080/buckets/1/workflows/1?alt=xml

Listing workflows managed by bucket with identifier 1:

$ http http://localhost:8080/buckets/1/workflows

Workflow revision resource

Adding a new workflow revision for workflow with identifier 1 in bucket with id 1:

$ http -f POST http://localhost:8080/buckets/1/workflows/1/revisions file@/path/to/workflow.xml

Getting workflow metadata for workflow with identifier 1 and revision 1 in bucket with id 1:

$ http http://localhost:8080/buckets/1/workflows/1/revisions/1

Fetching workflow XML payload for workflow with identifier 1 and revision 1 in bucket with id 1:

$ http http://localhost:8080/buckets/1/workflows/1/revisions/1?alt=xml

Listing all revisions for workflow with identifier 1:

$ http http://localhost:8080/buckets/1/workflows/1/revisions

workflow-catalog's People

Watchers

 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.