Hi experts,
I’m testing with Bonita Commutity 7.2.3 and I’ve been able to create a case of Travel Request sample via:
/bonita/API/bpm/process/{processId}/instantiation, with payload:
{“travelRequestInput” :
{
“userId”: 3,
“destination”: “MOTRIL”,
“departureDate”: “2017-02-09”,
“numberOfNights”: 1,
“hotelNeeded”: true,
“reason”: “Prueba 17 Mayo 1”,
“status”: “pending”,
“refusalReason”: “”
}
}
… but it’s always started as the user who is logged in. How can I have a generic user that can open new cases in behalf of other users?
Thanks a lot,
Jose.
I suspect you’ll need to think a bit wider than hoping this process will work for what you want.
Basically you’ll need to redesign the process or replicate it so proxy users are allowed.
For example:
Start Travel Request will have to have a list of all users on the system, this should be a dropDownList (only one at a time).
The approval will not go to the initiator’s manager, but the manager of user who’s travel is being requested by the initiator. You’ll have to redevelop the Actor Filter for this.
In the end you’ll end up with two processes
- Create Travel Request for Self, and
- Create Travel Request for Someone Else.
regards
Seán
PS: If this reply answers your question, please mark as resolved.