Generated Task Forms in BPMS 6 contain "quot;" values inside the errorMessage, label and title attributes of a field
Issue
-
When retrieving the generated
Task Form
for a task generated inBusiness Central
, it has been observed for certain fields their attributes like-errorMessage
,label
andtitle
tend to contain a lot ofquot;
parts in the form. The issue appears when users download such forms in theirXML
orJSON
format viaIntelligent Process Server
REST API as shown here [1] , and the expectation is the form should not contain such strange characters inside it and should look clean as visible in the form modeler ofBusiness Central
. -
The following steps can be followed to replicate the same issue and the
quot;
values can be observed in the sample task form/TaskModelFormTest/src/main/resources/org/sample/process/TaskModelFormTest.ProcessModelOne-taskform.form
from the attached project as well.
1. Login to Business Central with a user who can create a process
2. Go To => Authoring Tab
3. Go To => New Item => Business Process
4. Create a few process variables like (firstName = String, lastName = String)
5. Create a few User Tasks and assign the variables using the Data Input / Output Assignments screen.
6. Choose "Generate all Forms" in the Business Process Modeler
7. Save Business Process
8. Build and Deploy Project
9. Go To => Deploy => Execution Server
10. Add a new Container to Intelligent Process Server:
- Name : Container1
- Group Name : org.kie.example
- Artifact Id : TaskModelFormTest
- Version : 1.0
11. Start Container "Container1"
12. Use any REST client to execute the following REST API using a user having the role "kie-server" . It will start a process instance:
- [POST] : http://localhost:8080/kie-server/services/rest/server/containers/Container1/processes/TaskModelFormTest.ProcessModelOne/instances
- Content-Type : application/json
- Body : {
"firstName": "Ton",
"lastName": "Swieb",
}
13. Get the form of the task :
- [GET] http://localhost:8080/kie-server/services/rest/server/containers/Container1/forms/tasks/1/
After following the 13th step user can download the form in XML/JSON format which would contain the quote characters.
- Is there anyway such "quot;" characters can be removed from the generated forms?
Environment
- Red Hat JBoss BPM Suite (BPMS)
- 6.4.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.