Invoke Service


The Invoke Service node controls the invoke service downstream message to Kafka.

Note

  • This does not automatically invoke the service of the device; to do this, use the Send Command node instead.
  • If there is custom processing done on the invoke service message, not using the Invoke Service node will result in the failure to send the message to Kafka, which will cause the device to be unable to receive any control commands.

Node Type

EnOS.

Input and Output Ability

This node has multiple entry points and 2 exit points (success/failure).

Node Properties

../../../_images/invoke_service.png


Name

The name for this node.


Description

The description for this node.

Samples

Input Sample

{
  "MetaData": {
    "messageType": "InvokeService",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId"
  },
  "Body": {
    "payload": [
      123,
      34,
      105,
      100,
      34,
      58,
      34,
      51,
      125
    ],
    "code": 200,
    "orgId": "yourOrgId",
    "productKey": "productKey",
    "deviceKey": "deviceKey",
    "assetId": "assetId",
    "method": "thing.service.yourServiceIdentifier",
    "extProps": {
      "gwDeviceKey": "deviceKey",
      "gwProductKey": "productKey",
      "%TRACE_ID%": "6eded0e8-786d-4127-be12-5d3d63f605aa"
    }
  }
}

Output Sample

{
  "MetaData": {
    "messageType": "InvokeService",
    "assetId": "assetId",
    "deviceKey": "deviceKey",
    "productKey": "productKey",
    "orgId": "yourOrgId",
    "componentResult": "Success"
  },
  "Body": {
    "payload": [
      123,
      34,
      105,
      100,
      34,
      58,
      34,
      51,
      125
    ],
    "code": 200,
    "orgId": "yourOrgId",
    "productKey": "productKey",
    "deviceKey": "deviceKey",
    "assetId": "assetId",
    "method": "thing.service.yourServiceIdentifier",
    "extProps": {
      "gwDeviceKey": "deviceKey",
      "gwProductKey": "productKey",
      "%TRACE_ID%": "6eded0e8-786d-4127-be12-5d3d63f605aa"
    }
  }
}