{
  "synLogic": "int $ret \u003d $api($1, $2, $3, $4, $5);",
  "help": "The API ns_tibco_set_message_header() is typically used in TIBCO messaging systems to set a message header key-value pair for a given message",
  "notes": "",
  "returns": "This function returns an integer value of 0 upon successful execution. In case of an error, a non-zero integer value is returned, and the error message is stored in the \"error_msg\" character array",
  "arguments": "\u003ctable class\u003d\"newGuiTable\" style\u003d\"width:100%\" \u003e \u003ctr\u003e \u003cth\u003e Argument \u003c/th\u003e \u003cth\u003e Description \u003c/th\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e JPCID \u003c/td\u003e \u003ctd\u003e JMS Pool Connection Id \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Error Message \u003c/td\u003e \u003ctd\u003e A character pointer that stores the error message if any. \u003c/td\u003e \u003c/tr\u003e  \u003ctr\u003e \u003ctd\u003e Header Name \u003c/td\u003e \u003ctd\u003e This is the name of the header that you want to set for the message. This parameter is typically a string. \u003c/td\u003e \u003c/tr\u003e  \u003ctr\u003e \u003ctd\u003e Header Type \u003c/td\u003e \u003ctd\u003e Type of the header value. Possible values are: \nNS_DOUBLE \nNS_FLOAT \nNS_INTEGER \nNS_LONG \nNS_SHORT \nNS_STRING \nNS_BYTE \nNS_OBJECT \u003c/td\u003e \u003c/tr\u003e  \u003ctr\u003e \u003ctd\u003e Header Value \u003c/td\u003e \u003ctd\u003e This is the value of the header that you want to set for the message. This parameter is typically a string or a numeric value. \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_tibco_set_message_header",
  "syntax": "int ns_tibco_set_message_header(int jpcid, char *error_msg, char *header_name, int value_type, ...)",
  "javaSyntax": "int ns_tibco_set_message_header(int jpcid, char *error_msg, char *header_name, int value_type, ...)",
  "cEx": "flow()\n{\n  int jpid = 1234;\n  double timeout = 5.0;\n  char error_msg[256];\n  int status = ns_tibco_set_message_header(jpcid, timeout, error_msg, header_name, value_type);\n  if (status != 0) {\n    printf(\"Error: %s\", error_msg);\n  } else {\n    printf(\"Headers set successfully.\");\n  }\n}",
  "javaEx": "flow()\n{\n  int jpid = 1234;\n  double timeout = 5.0;\n  char error_msg[256];\n  int status = ns_tibco_set_message_header(jpcid, timeout, error_msg, header_name, value_type);\n  if (status != 0) {\n    printf(\"Error: %s\", error_msg);\n  } else {\n    printf(\"Headers set successfully.\");\n  }\n}",
  "insertStrC": "ns_tibco_set_message_header(int jpcid, char *error_msg, char *header_name, int value_type, ...);",
  "insertStrJava": "ns_tibco_set_message_header(int jpcid, char *error_msg, char *header_name, int value_type, ...);",
  "description": "The ns_tibco_set_message_header API is used to set message header for Tibco in a script file.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "JMS Pool Connection Id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter jpcid",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
		"max": 2147483647,
        "min": 0
		}
    },
	{
      "id": "$2",
      "type": "TEXT_VAR",
      "label": "Error Message",
      "labelVarCheckbox": "If error message is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter error message",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
		}
    },
	{
      "id": "$3",
      "type": "TEXT_VAR",
      "label": "Header Name",
      "labelVarCheckbox": "If header name is a program variable",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter header name",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
		}
    },
	{
      "id": "$4",
      "type": "Dropdown",
      "label": "Value Type",
      "value": "NS_DOUBLE",
      "css": "p-grid p-align-center w-100-p",
      "title": "Selecte value type",
      "placeHolder": "Select value type",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "NS_DOUBLE",
          "value": "NS_DOUBLE"
        },
        {
          "label": "NS_FLOAT",
          "value": "NS_FLOAT"
        },
        {
          "label": "NS_INTEGER",
          "value": "NS_INTEGER"
        },
        {
          "label": "NS_LONG",
          "value": "NS_LONG"
        },
        {
          "label": "NS_SHORT",
          "value": "NS_SHORT"
        },
        {
          "label": "NS_STRING",
          "value": "NS_STRING"
        },
        {
          "label": "NS_BYTE",
          "value": "NS_BYTE"
        },
        {
          "label": "NS_OBJECT",
          "value": "NS_OBJECT"
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 0
      }
    },
	{
      "id": "$5",
      "type": "TextField",
      "label": "Header Value",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter header value",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
        "required": true
      }
    },
    {
      "id": "$ret",
      "type": "TextField",
      "label": "Return Variable",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "First character must be Alpha.\r\nOther characters are Alpha, Numeric or Underscore.",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Text",
		"pattern": "^[a-zA-Z][a-zA-Z0-9_]{0,63}$",
        "required": false,
        "method": "isValidVar(arg)"
      }
    }
  ]
}
