Retrieving flow-nodes with flowNodeId

Hi,

Topic context:

I am using the operate API to retrieve flow-nodes through /flownode-instances/search and getting results like this one:

{
    "items": [
        {
            "key": 2251799813892292,
            "processInstanceKey": 2251799813892290,
            "startDate": "2022-10-20T08:50:45.535+0000",
            "endDate": "2022-10-20T08:50:45.543+0000",
            "type": "START_EVENT",
            "state": "COMPLETED",
            "incident": false
        },
...
}

Now, when inspecting Camunda 8 SaaS Operate UI, I noticed the requested API is a different one, api/flow-node-instances which gets back responses in the following format:

{
  "2251799813892290" : {
    "children" : [ {
      "id" : "2251799813892292",
      "type" : "START_EVENT",
      "state" : "COMPLETED",
      "flowNodeId" : "StartEvent_1",
      "startDate" : "2022-10-20T08:50:45.535+0000",
      "endDate" : "2022-10-20T08:50:45.543+0000",
      "treePath" : "2251799813892290/2251799813892292",
      "sortValues" : [ 1666255845535, "2251799813892292" ]
    }
...
]

Questions:

  1. Camunda 8 SaaS Operate uses some sort of private API different from the public available ones?

  2. If yes, why?

  3. If yes, is there any other way to get the flow-node instances collection with their flowNodeId through a public available API?

    Yes, I am trying to develop a Task List with process execution diagram viewer. =)

Regards,

Victor Franca

Hello @victorhugof ,

I developed an example using a combination of Tasklist and Operate (Operate for the BPMN xml, Tasklist for all the rest (including flownode id).

Would this also work?

Jonathan

Hey @jonathan.lukas ,

Sorry by the delay, I missed this message. 
Is this example of yours in github?

Victor

Hello @victorhugof ,

yes, this example is available under

Jonathan

Thanks, @jonathan.lukas