BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  Update Process Variables using REST API

    Posted Sun October 11, 2020 09:18 PM
    Hi All,

    I need to update the input variable for a linked subprocess. I am using the API "Update Instance All Variables".

    I am using below JSON input but it gives me error 

    {"variables":{"var1": {"name": "efgh","value": "abcd"}},"contexts":{"be9eebe8-ea01-4a1d-9820-cce1a825e787": {"processId":"25.be9eebe8-ea01-4a1d-9820-cce1a825e787","variables":["var1"]}}}

    status:
    "error",
    exceptionType:
    "com.ibm.bpm.wle.api.UnexpectedFailureException",
    errorNumber:
    "CWTBG0019E",
    errorMessage:
    "CWTBG0019E: Unexpected exception during execution. Exception information: 'java.lang.NullPointerException'.",

    Please advise.

    Thanks

    ------------------------------
    Harish Gupta
    ------------------------------


  • 2.  RE: Update Process Variables using REST API

    Posted Mon October 12, 2020 04:11 AM

    Hello Harish, 

    I just did a quick test and the API is still working fine to me. Please make sure:
    - Your username has admin right
    - var1: is the variable inside the linked process not in the bounder one
    - be9eebe8-ea01-4a1d-9820-cce1a825e787: is ID of linked process (when you open the bounder process)
    - 25.be9eebe8-ea01-4a1d-9820-cce1a825e787: is process ID of the linked process

    If that's all correct, can you please upload some screenshot here?

    With Regards, 

    Tung Nguyen



    ------------------------------
    Tung Nguyen
    You Get BV
    ------------------------------