How to create and upload a new BPMN2 process definition in Guvnor using REST API ?

Solution Unverified - Updated -

Environment

  • Red Hat JBoss BRMS (BRMS)
    • 5.3.x

Issue

  • How to create and upload a new BPMN2 process definition in BRM (i.e. Guvnor) UI using REST API ?

Resolution

when an Atom Entry is provided, the following information must be included in the input: asset name, asset description, asset initial category, and asset format.
  • Attached is a small JBDS based Java project, RestAPIConnectionTest.zip, where the main program RestClientConnect.java can be executed (please supply the appropriate REST API URL in url variable) as a standalone Java project. This program assumes that there is an existing and valid Guvnor package named TestPackage in the Guvnor. It would create a BPMN2 process definition named SimpleProcess.bpmn2 inside the TestPackage Guvnor package. The project can be imported directly into any Eclipse based IDE as a Java project and it has already got the required libraries to run as a standalone Java program.
  • This test case uses the content-type as application/octet-stream and it reads the BPMN2 process definition (as Bytes stream) that is packaged inside the project.

[1] https://access.redhat.com/site/documentation/en-US/JBoss_Enterprise_BRMS_Platform/5/html-single/BRMS_User_Guide/index.html#sect-Rest_API

Attachments

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments