{
  "synLogic": "int $ret \u003d $api($1, $2, $3);",
  "help": "The ns_tibco_set_getMsg_timeout API is used to set timeout for getmsg.  It is used to specify how long the function should wait for a message to arrive before returning control to the calling program.",
  "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 JPID \u003c/td\u003e \u003ctd\u003e An integer representing the process ID \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Timeout \u003c/td\u003e \u003ctd\u003e A double value representing the timeout  \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Error Message \u003c/td\u003e \u003ctd\u003e A character array used to store any error message generated by this function. \u003c/td\u003e \u003c/tr\u003e \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_tibco_set_getMsg_timeout",
  "syntax": "int ns_tibco_set_getMsg_timeout(int jpid, double timeout, char *error_msg)",
  "javaSyntax": "int ns_tibco_set_getMsg_timeout(int jpid, double timeout, char *error_msg)",
  "cEx": "flow()\n{\n  int jpid = 1234;\n  double timeout = 5.0;\n  char error_msg[256];\n  int status = ns_tibco_set_getMsg_timeout(jpid, timeout, error_msg);\n  if (status != 0) {\n    printf(\"Error: %s\", error_msg);\n  } else {\n    printf(\"Timeout value 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_getMsg_timeout(jpid, timeout, error_msg);\n  if (status != 0) {\n    printf(\"Error: %s\", error_msg);\n  } else {\n    printf(\"Timeout value set successfully.\");\n  }\n}",
  "insertStrC": "ns_tibco_set_getMsg_timeout(int jpid, double timeout, char *error_msg);",
  "insertStrJava": "ns_tibco_set_getMsg_timeout(int jpid, double timeout, char *error_msg);",
  "description": "The ns_tibco_set_getMsg_timeout API is used to set timeout for getmsg.  It is used to specify how long the function should wait for a message to arrive before returning control to the calling program.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "JMS Pool Id",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter jpid",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
		"max": 2147483647,
        "min": 0
		}
    },
	{
      "id": "$2",
      "type": "TextField",
      "label": "Timeout",
      "labelVarCheckbox": "",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Timeout should be numeric",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
	  "quotes" : false,
      "validate": {
        "inputType": "Text",
        "required": true,
		"pattern": "^[0-9]+(\.[0-9]*)?$",
		"max": 0,
		"min": 0
		}
    },
	{
      "id": "$3",
      "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": "$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)"
      }
    }
  ]
}
