Hello.
I worked with your recommendation and it did not work
Install pretty studio 2022.2 because the link you recommended was for that version.
With this I make sure that the installation is clean, without permission errors.
I do this.
1)
I get the process id
get
http://localhost:63066/bonita/API/bpm/process?c=10&p=0
{
"displayDescription": "",
"deploymentDate": "2022-10-25 19:36:23.335",
"displayName": "Incidente",
"name": "Incidente",
"description": "",
"deployedBy": "4",
"id": "5063742355450000882",
"activationState": "ENABLED",
"version": "1.0",
"configurationState": "RESOLVED",
"last_update_date": "2022-10-25 19:36:23.702",
"actorinitiatorid": "125"
}
2)I make a post
http://localhost:63066/bonita/API/bpm/process/5063742355450000882/instantiation
{
"searchIndex5Label": "",
"searchIndex3Value": "",
"searchIndex4Value": "",
"searchIndex2Label": "",
"searchIndex1Value": "",
"searchIndex3Label": "",
"startedBySubstitute": "4",
"searchIndex5Value": "",
"searchIndex2Value": "",
"state": "started",
"searchIndex1Label": "",
"started_by": "4",
"searchIndex4Label": ""
}
401 Unauthorized
and cookies are sent
headers: {
'Content-Type': 'application/json',
'Cookie': 'bonita.tenant=1; BOS_Locale=es; Cookie_1=value; JSESSIONID=283B51C193EB8F1FE4C663BDB6C69884; X-Bonita-API-Token=f83758a0-3335-4565-b7c8-b7be746af75d'
},
3) I bring the things created with the bpm and the processDefinitionId is correct.
http://localhost:63066/bonita/API/bpm/case/
[
{
"end_date": "",
"searchIndex5Label": "",
"processDefinitionId": "5063742355450000882",
"searchIndex3Value": "",
"searchIndex4Value": "",
"searchIndex2Label": "",
"start": "2022-10-25 19:37:08.419",
"searchIndex1Value": "",
"searchIndex3Label": "",
"startedBySubstitute": "4",
"searchIndex5Value": "",
"searchIndex2Value": "",
"rootCaseId": "8",
"id": "8",
"state": "started",
"searchIndex1Label": "",
"started_by": "4",
"searchIndex4Label": "",
"last_update_date": "2022-10-25 19:37:08.419"
},
{
"end_date": "",
"searchIndex5Label": "",
"processDefinitionId": "5063742355450000882",
"searchIndex3Value": "",
"searchIndex4Value": "",
"searchIndex2Label": "",
"start": "2022-10-25 19:53:59.399",
"searchIndex1Value": "",
"searchIndex3Label": "",
"startedBySubstitute": "4",
"searchIndex5Value": "",
"searchIndex2Value": "",
"rootCaseId": "9",
"id": "9",
"state": "started",
"searchIndex1Label": "",
"started_by": "4",
"searchIndex4Label": "",
"last_update_date": "2022-10-25 19:53:59.399"
}
]
please can you share the custom-permissions-mapping.properties , resources-permissions-mapping-custom.properties and compound-permissions-mapping-custom.properties files of your
installation so I verify the permissions you have?
According to the documentation here https://documentation.bonitasoft.com/bonita/2022.1/identity/rest-api-authorization#static_authorization they are needed to use the rest api
Send to this email please weglineduardo@hotmail.com