This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

REST API Resume Paused Flow - ERROR - data map cannot be null when resuming an execution

I'm trying to RESUME a PAUSED flow thru REST API using the "HTTP Client Put" step in OO:

Step Input:

URL: CentralHost:8443/.../status

AUTHTYPE: basic 

CONTENTTYPE: application/json

METHOD: PUT

BODY: {"action": "RESUME"}

Central server.log Result:

2023-10-04 11:06:57,887 [http-nio-8443-exec-15] (FlowExecutionV2Controller.java:218) ERROR - data map cannot be null when resuming an execution

OO Step Result:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">www.w3.org/.../xhtml1-transitional.dtd">
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title>HPE Operations Orchestration</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>

<body>
<img src="/oo/400.png" alt="400 bad request" usemap="#flowMap">
<map name="flowMap">
<area shape="rect" coords="588,182,660,229" href="/oo">
<area shape="rect" coords="334,356,404,452" href="/oo">
<area shape="rect" coords="830,350,904,451" href="/oo">
<area shape="rect" coords="573,650,653,752" href="/oo/#/contentWorkspace/flowLibrary">
<area shape="rect" coords="690,650,768,752" href="/oo/#/systemWorkspace/systemConfiguration">
<area shape="rect" coords="994,650,1063,752" href="/oo/#/runtimeWorkspace/runs">
<area shape="rect" coords="1105,650,1190,752" href="/oo/#/reportsWorkspace/dashboard">
</map>
</body>

</html>

Any advise please? Thanks in advance :-)

Parents
  • 0

    Hi,

    As per the OO documentation (https://docs.microfocus.com/doc/Operations_Orchestration/2023.05/ChangeExecutionStatus) in order to resume a flow without providing input values the body should contain:

    {
    "action": "RESUME",
    "data": {
    "branchId": null
    }
    }

    While for a paused flow where providing inputs for prompts the body should look like this:
    {
    "action": "RESUME",
    "data": {
    "branchId": "f47ac10b-58cc-4372-a567-0e02b2c3d479:1",
    "input_binding": {
    "Input 1": "VALUE2",
    "Input 2": [
    "VALUE1",
    "VALUE2",
    "VALUE3"
    ],
    "Input 3": null,
    "Input 4": "434"
    }
    }
    }

    Basically in your case the body of the request was missing the data key-value pair and that is why it is giving you a bad request response instead of resuming the flow.

    Hope this helps,
    Vlad


  • Verified Answer

    +1 in reply to 

    Thanks very much Vlad! It works now after adding the missing input values in the body of my HTTPClient PUT step.

    "data": {
    "branchId": null
    }
    
Reply
  • Verified Answer

    +1 in reply to 

    Thanks very much Vlad! It works now after adding the missing input values in the body of my HTTPClient PUT step.

    "data": {
    "branchId": null
    }
    
Children
No Data