To trigger a ProcessInstance
workflow for another entity from one entity's workflow, we are developing a custom workflow that needs to call the process instance for all child entities based on specific conditions. To achieve this, I am creating a request URL and a JSON request body, providing an access token as well. Everything looks fine from the code perspective, but when we trigger it from Java, it throws a Reltiorequestexception
. However, when I use the same request URL and JSON body in Postman, it works perfectly.
Can you suggest why it might be failing in Java? What is the best way to trigger this, and could we be missing anything?
Encountered Error snippet :-
Postman API snippet(working fine):-
Java code snippet :-
------------------------------
Amisha Kumari
Fresh Gravity
PATNA
------------------------------