Genesys Engage on-premises

 View Only

Discussion Thread View
  • 1.  Parsing OPM schedule parameters

    Posted 10-26-2016 06:57
    how to parsing opm schedule parameters in ird or composer?


  • 2.  RE: Parsing OPM schedule parameters

    Posted 12-27-2023 10:08

    Hi, mate.

    Were you able to figure it out? I appreciate your help with it.



    ------------------------------
    Julian Sandoval
    Scotiabank
    ------------------------------



  • 3.  RE: Parsing OPM schedule parameters

    Posted 12-27-2023 10:27

    Hey Guys,

    If you use Composer, you can use block OPM, but if you use IRD, I see only this solution, than uses API GAX to extract data OPM.

    Here are some of the endpoints so you can further research:
    Get parameter templates: /gax/api/opm/pgts
    Get parameters: /gax/api/opm/parameters
    Login: /gax/api/session/login
    Logout: /gax/api/session/logout

    I guess that Composer doesn't support this type natively: https://docs.genesys.com/Documentation/Composer/8.1.5/Help/OPMCommonBlock

    • OPM Complex parameters like Schedule and Custom List types are not supported by GVP 8.1.6 and also not supported in Composer 8.1.3+.

    you'd need to build your custom function to parse the information.

    Schedule type parameter in GAX example:
    [open_hours]
    pattern1=W//1/08:00-20:00
    pattern2=W//2/08:00-20:00
    pattern3=W//3/08:00-20:00
    pattern4=W//4/08:00-20:00
    pattern5=W//5/08:00-20:00
    pattern6=W//6/

    I hope so helped you!

    Att,



    ------------------------------
    Breno Canyggia Ferreira Marreco
    ------------------------------



  • 4.  RE: Parsing OPM schedule parameters

    Posted 12-27-2023 10:42

    Hi, Breno.

    Thanks for your quick response. The thing is that I'm already using the OPM block; however, I have the composer version 8.1.560.15 and GVP version 9.0.054, and I should be able to retrieve OPM complex parameters and obtain the OPM_schedule/pattern1 value, for instance, from the transaction list deployed.



    ------------------------------
    Julian Sandoval
    Scotiabank
    ------------------------------



  • 5.  RE: Parsing OPM schedule parameters

    Posted 12-27-2023 12:35

    Hi Julian, excellent.

    How is format schedule the returned in GVP version 9.0.054?

    Att,



    ------------------------------
    Breno Canyggia Ferreira Marreco
    ------------------------------



  • 6.  RE: Parsing OPM schedule parameters

    Posted 12-27-2023 14:14

    Hi, Breno.

    I see it like this in the RM log.

    2023-12-27T12:33:15.588 DBUG 00000000-00000000 1092 08500000 CCIMFGenericObject.cpp:859 utilAddTKVSection >> Read config kv pair (opm_schedule.pattern1=D/-05:00/2023-12-22/03:30-16:30).
    I can even see the JSON parameter.
    opm._json={
      "main": {
        "id": 10002,
        "key": "main",
        "displayName": "Main",
        "orderIndex": 0,
        "parameters": {
          "startdate": {
            "id": 10005,
            "valueInSynch": true,
            "name": "startdate",
            "keyName": "startdate",
            "type": "DATE",
            "global": false,
            "helpText": "Broadcast Messages dates",
            "value": null,
            "minValue": "2023-12-21",
            "maxValue": "2024-12-31",
            "orderIndex": 0,
            "optional": false
          },
          "starttime": {
            "id": 10006,
            "valueInSynch": true,
            "name": "starttime",
            "keyName": "starttime",
            "type": "TIME",
            "global": false,
            "helpText": "Broadcast Messages Dates",
            "value": null,
            "minValue": "00:00",
            "maxValue": "23:00",
            "orderIndex": 1,
            "optional": false
          },
          "enddate": {
            "id": 10007,
            "valueInSynch": true,
            "name": "enddate",
            "keyName": "enddate",
            "type": "DATE",
            "global": false,
            "helpText": "",
            "value": null,
            "minValue": "2023-12-21",
            "maxValue": "2024-09-28",
            "orderIndex": 2,
            "optional": false
          },
          "endtime": {
            "id": 10008,
            "valueInSynch": true,
            "name": "endtime",
            "keyName": "endtime",
            "type": "TIME",
            "global": false,
            "helpText": "",
            "value": null,
            "minValue": "00:00",
            "maxValue": "23:00",
            "orderIndex": 3,
            "optional": false
          },
          "parameters": {
            "id": 10009,
            "customList": [
              {
                "value": "y",
                "keyValue": "close",
                "orderIndex": 0,
                "id": 10013
              },
              {
                "value": "n",
                "keyValue": "open",
                "orderIndex": 1,
                "id": 10014
              },
              {
                "value": "E",
                "keyValue": "broadcast",
                "orderIndex": 2,
                "id": 10015
              }
            ],
            "valueInSynch": true,
            "name": "parameters",
            "keyName": "parameters",
            "type": "CUSTOMLIST",
            "global": false,
            "helpText": "",
            "value": "broadcast",
            "orderIndex": 4,
            "optional": false
          },
          "schedule": {
            "id": 10010,
            "valueInSynch": true,
            "name": "schedule",
            "keyName": "schedule",
            "type": "SCHEDULE",
            "global": true,
            "helpText": "",
            "orderIndex": 5,
            "complexValue": {
              "patterns": [
                "D/-05:00/2023-12-22/03:30-16:30"
              ],
              "extraPatterns": [
                "D/-05:00/2023-12-22/03:30-16:30~EST"
              ]
            },
            "optional": true,
            "value": null
          }
        }
      }
    })
    However, in the "AppState.APP_OPM" variable I see the values below:

    I'm unsure how to retrieve the "_json" or "opm_schedule.pattern1" values.



    ------------------------------
    Julian Sandoval
    Scotiabank
    ------------------------------



Need Help finding something?

Check out the Genesys Knowledge Network - your all-in-one access point for Genesys resources