When using Engine API, once a case is created using an userId (different from the session userId), Bonita Portal is Broken:
Sample Code (Start New Process Instance):
String username = "walter.bates";
String password = "bpm";
LoginAPI loginAPI = TenantAPIAccessor.getLoginAPI();
APISession apiSession = loginAPI.login(username, password);
ProcessInstance p = TenantAPIAccessor.getProcessAPI(apiSession).startProcess(7L, 6673751338502244567L);
Sample Code (Execute User Task)
LoginAPI loginAPI = TenantAPIAccessor.getLoginAPI();
APISession apiSession = loginAPI.login(username, password);
Map<String,Serializable> instantiationInputs = new HashMap<String,Serializable>();
instantiationInputs.put("caseId", 0);
instantiationInputs.put("taskName", "test");
TenantAPIAccessor.getProcessAPI(apiSession).executeUserTask(7L, this.selectedTask.getId(), instantiationInputs);
A case created with Walter Bates session for virginie.jomphe works fine with virginie.jomphe Bonita Portal but when you try to view it with walter.bates the following error occurs:
In the same situation, cannot add Comments to the Pending and Assigned Tasks:
"The case is archived. You cannot add comments anymore"
Affected functionalities in Portal:
Cases (Open and Archived)
Administration (Process/Status)
Cannot access to overview pages.
URL Example
/bonita/API/bpm/case/5?d=started_by&d=startedBySubstitute&d=processDefinitionId&d=processDefinitionId
I'm using Bonita Community 7.11.4, I'm not sure if previous versions are affected
No workaround, portal is broken and only can be fixed by reseting the database, in the meanwhile, portal shows 404 error
Hola Juan, could you please provide your .bos file if you can share it?
Thank you