Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1135421

Summary: Example using /execute endpoint is not valid
Product: [Retired] JBoss BPMS Platform 6 Reporter: Anton Giertli <agiertli>
Component: DocumentationAssignee: Shelly McGowan <smcgowan>
Status: CLOSED EOL QA Contact: Lukáš Petrovický <lpetrovi>
Severity: urgent Docs Contact: Dawn Eisner <deisner>
Priority: urgent    
Version: 6.0.2CC: alazarot, brms-docs, smcgowan, wsiqueir
Target Milestone: ---   
Target Release: One-off release   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Build Name: 22684, Development Guide-6.0-1 Build Date: 30-06-2014 17:13:19 Topic ID: 22207-592454 [Latest]
Last Closed: 2020-03-27 20:01:50 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1105079    
Attachments:
Description Flags
rest client
none
git repo none

Description Anton Giertli 2014-08-29 09:27:07 UTC
Created attachment 932610 [details]
rest client

Title: Execute operations

Describe the issue:
The example in the documentation, which is invoking /execute endpoint by using Command API is not valid for BPM Suite 6.0.2. We have seen customer complaining about this and even for 6.0.1.

-- it is very hard to read
-- you can't just drop it in your environment and run it
-- it does not authenticate
-- it is not using BPM Suite 6.0.2 API, there has been minor changes and the code is simply not compatible with 6.0.2 libraries

I have come up with a verified example for BPM Suite 6.0.2

Suggestions for improvement:

Review my example (attached)

 - it includes self-contained java application, which can be just drop into the JBDS and run
- it includes productized BPM libraries 6.0.2 
- it includes community RestEasy (!!)
- it is using StartProcessCommand for kicking off the process. Start parameter is provided and it is a complex object not a primitive type (common use case).

What are the prerequisites for this example run?

There is a dependency in the pom.xml
		<dependency>
			<groupId>org.redhat.gss</groupId>
			<artifactId>executeProject</artifactId>
			<version>1.0</version>
		</dependency>

I have created this project in the business-central with the GAV above.
It includes just two things:
1) process definition looks like this
http://ctrlv.cz/shots/2014/08/29/TrPU.png
2) The model
http://ctrlv.cz/shots/2014/08/29/xQ7a.png

Reusing the model created in data modeler in your client application by adding it as maven dependency is *prefered* way.

All you need to do is to create this project in the business-central and build&deploy, it will be automatically installed into your local repository and available for use in your client rest application. I am also attaching the git repository if needed, but the assets are very simple.


Additional information:

Comment 1 Anton Giertli 2014-08-29 09:27:37 UTC
Created attachment 932611 [details]
git repo

Comment 5 Vikram Goyal 2015-02-12 10:31:49 UTC
*** Bug 1105355 has been marked as a duplicate of this bug. ***