How to trigger workflows from Postman

Tagged: ,

This topic has 2 replies, 2 voices, and was last updated 10 months, 2 weeks ago by msarun85.

  • Author
    Posts
  • #28752
     msarun85
    Participant

    I am trying to invoke the workflows (to initiate workflow) from my local Postman instance. I am trying to do it as per this documentation https://backstage.forgerock.com/docs/idm/6.5/integrators-guide/index.html#invoking-activiti-workflows
    The workflow i am trying to invoke is having two fields. How do i send the values for these 2 fields via postman. When i try via the curl command specified in the documentation, i get the following error:
    {
    “code”: 500,
    “reason”: “Internal Server Error”,
    “message”: “problem evaluating script: javax.script.ScriptException: java.lang.NullPointerException: Cannot get property '_id' on null object”
    }

    The Request which I am sending is :
    {“_key”:”myProcess_2″}

    and URL via postman is:
    https://d-pfw-im-1.local:9443/openidm/workflow/processinstance?_action=create

    #28753
     Jatinder Singh
    Participant

    It would help a tad bit more if you could paste the entire CURL request (and not just the body). From what it seems like, your POSTMAN request did meet the REST contract (otherwise you would get a 400 Bad Request) but the server itself couldn’t process it. I would look in the logs to see what actualy happened.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

©2022 ForgeRock - we provide an identity and access platform to secure every online relationship for the enterprise market, educational sector and even entire countries. Click to view our privacy policy and terms of use.

Log in with your credentials

Forgot your details?