Nodes - Model Find by ID

This document describes the model find by ID and provides instance configuration and parameters information.

Name

Description

ModelFindByID

A Model specific flow-node. Invokes the Find by ID API on a specified model and returns the response.

Instance configuration

Property

Description

Required

Type

model

The name of the model of which to invoke the Find by ID API.

yes

string

Instance parameters

Property Description Type Required
id The id of the record to find. string true

Example

 Expand source
"model.findByID": {
 "type": "ModelFindByID",
 "config": {
   "model": "appc.arrowdb/acl"
 },
 "parameters": [
   {
     "name": "id",
     "value": "$.params.id"
   }
 ],
 "response": {
   "context": {
     "$": "model"
   },
   "routes": [
     {
       "conditions": [
         {
           "key": "$",
           "exists": false
         }
       ],
       "next": "response.error.notfound"
     },
     {
       "next": "response.success"
     }
   ]
 }
}
  

Related Links