{
  "synLogic": "int $ret \u003d $api($1, $2, $3);",
  "help": "The ns_tibco_set_put_msg_mode function is used to set the put message mode for the specified TIBCO process. The TIBCO process is identified by the jpid parameter, which is a unique identifier.",
  "notes": "",
  "returns": "integer : This function returns an integer value indicating the success or failure of the operation. If the operation is successful, it returns 0. If there is an error, it returns -1.",
  "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 A unique identifier that identifies the TIBCO process for which the put message mode needs to be set. \u003c/td\u003e \u003c/tr\u003e \u003ctr\u003e \u003ctd\u003e Put Mode \u003c/td\u003e \u003ctd\u003e Type of put message mode. The possible values are: \n1: Non Persistent \n2: Persistent \n22: Reliable \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 \u003c/table\u003e",
  "parameterization": "",
  "name": "ns_tibco_set_put_msg_mode",
  "syntax": "int ns_tibco_set_put_msg_mode(int jpid, int put_mode, char *error_msg)",
  "javaSyntax": "int ns_tibco_set_put_msg_mode(int jpid, int put_mode, char *error_msg)",
  "cEx": "flow()\n{\n  int jpid = 1234;\n  int put_mode = NS_TIBCO_MODE_SYNC;\n  char *error_msg = NULL;\n  int result = ns_tibco_set_put_msg_mode(jpid, put_mode, error_msg);\n  if (result == -1) {\n    printf(\"Error: %s\", error_msg);\n  } else {\n      printf(\"Put message mode set successfully\");\n  }\n}",
  "javaEx": "flow()\n{\n  int jpid = 1234;\n  int put_mode = NS_TIBCO_MODE_SYNC;\n  char *error_msg = NULL;\n  int result = ns_tibco_set_put_msg_mode(jpid, put_mode, error_msg);\n  if (result == -1) {\n    printf(\"Error: %s\", error_msg);\n  } else {\n      printf(\"Put message mode set successfully\");\n  }\n}",
  "insertStrC": "ns_tibco_set_put_msg_mode(int jpid, int put_mode, char *error_msg);",
  "insertStrJava": "ns_tibco_set_put_msg_mode(int jpid, int put_mode, char *error_msg);",
  "description": "The ns_tibco_set_put_msg_mode API is used to set put message mode.",
  "component": [
    {
      "id": "$1",
      "type": "TextField",
      "label": "JMS Pool Id",
      "labelVarCheckbox": "If JMS pool id is a program variable.",
      "value": "",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter pool id",
      "placeHolder": "",
      "style": "",
      "isDisabled": "",
      "validate": {
        "inputType": "Number",
        "required": true,
		"max": 2147483647,
        "min": 0
		}
    },
	{
      "id": "$2",
      "type": "Dropdown",
      "label": "Put Mode",
      "value": "TIBCO_NON_PERSISTENT",
      "css": "p-grid p-align-center w-100-p",
      "title": "Enter Put Mode",
      "placeHolder": "Select Put Mode",
      "style": "",
      "isDisabled": "",
      "list": [
        {
          "label": "Non Persistent",
          "value": "TIBCO_NON_PERSISTENT"
        },
        {
          "label": "Persistent",
          "value": "TIBCO_PERSISTENT"
        },
        {
          "label": "Reliable",
          "value": "TIBCO_RELIABLE"
        }
      ],
      "labelVarCheckbox": "",
      "argIndex": 0,
      "validate": {
        "inputType": "text",
        "disabled": false,
        "required": true,
        "min": 0,
        "max": 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)"
      }
    }
  ]
}
