Reltio Connect

 View Only
Expand all | Collapse all

Triggering ProcessInstance Workflow for Child Entities from a Parent Entity Workflow?

  • 1.  Triggering ProcessInstance Workflow for Child Entities from a Parent Entity Workflow?

    Reltio Partner
    Posted 22 days ago

    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
    ------------------------------


  • 2.  RE: Triggering ProcessInstance Workflow for Child Entities from a Parent Entity Workflow?

    Reltio Employee
    Posted 10 days ago

    Hi Amisha -

    It sounds like the issue might be related to how custom headers are handled in Java versus Postman. The Start Workflow Process API in Reltio requires a specific custom header (EnvironmentURL), which the ReltioApi service currently does not support for custom header injection. This limitation could be causing the Reltiorequestexception error when triggered in Java.

    When you call the API in Postman, it correctly includes all headers as specified, but in Java, the ReltioApi.invokeApi method does not allow for passing custom headers like EnvironmentURL



    ------------------------------
    Karthik Thomas
    Product Manager
    Reltio
    ------------------------------