Skip to content

cuba-labs/bproc-rest-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BProc REST Sample

Overview

The project demonstrates how to execute BProc actions using the REST API (from the mobile app, for example).

The project contains a middleware service (ExternalBprocService) for few basic BProc operations (start a process, get a list of user tasks, complete a user task). That service is configured for REST API (see the rest-services.xml). Service methods return meta classes of the BProc addon. If you don't need all the fields of these classes in the response or want responses to be in custom format then you can build and return simple POJOs from service methods. POJOs will be automatically serialized to JSON.

The test-process-1.bpmn20.xml is a sample process that can be deployed for testing. It contains two user tasks, both of them will be assigned to admin using the TestUserProvider. Forms are configured for start node and user tasks.

When user tasks must be completed from external clients only (mobile apps, custom portals, etc.), then you may think about using custom process forms.

The bproc-rest.http contains examples of HTTP requests.

Useful Links

BProc API

BProc Custom Process Forms

REST API Services Configuration

REST API Service Method Invocation (POST)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages