Jump to: navigation, search

Changes to IWDBP Strategies & Subroutines in 9.0.004.07

Important
The details in this topic concern changes made to the IWD BP for Composer/ORS in release 9.0.004.07. Strategies and subroutines not referenced here remain the same as in the previous release.

InvokeGRE Strategy

During the task lifecycle, GRE changes interaction properties. This is done asynchronously, so sometimes ORS does not have enough time to receive confirmation event from Interaction Server and continue execution of the workflow. This could lead to unexpected behavior—for example, tasks could go to the ErrorHeld queue sporadically without visible reasons.

A Pause block with a configurable delay has been added into the InvokeGRE workflow after the AfterESPCallActivities block to guarantee that interaction updates will be received. This delay is set in milliseconds. By default it is set to 0.

If it is observed that ORS has already moved to the next workflow step but has still not received a confirmation event from Interaction Server, then this delay needs to be configured. The value should be calculated individually and specifically, depending on the delay in the Interaction Server response.

Important
The delay must be set accurately, taking into account that this pause will happen during each InvokeGRE execution. If there are many interactions, the total delay could be substantial.

Composer configuration

The delay can be set via the vInxSrvResponseWaitMs variable. To set its value, do the following:

  1. Click on the Entry block of the InvokeGRE strategy.
  2. Select the Properties tab at the bottom of the Composer window.
  3. Click on the dots next to Global Settings -> Variables to open the Application Variables window.
  4. Expand the User Variables item and set the vInxSrvResponseWaitMs value.

UCS8510801 1.png


Flow Summary

Part 1

Workflow part1.png

Part 2

Workflow part2.PNG

Part 3

Workflow part3.PNG

Flow Detail

  1. Entry to InvokeGRE strategy.
  2. Check if in_method_name is set to SetBusinessContext or Prioritize.
  3. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_GRE_Error
    • vInLastErrorString—Error informs that: vInMethodName + ' is not valid'
  4. The interaction is placed in the iwd_bp_comp.Main.iWD_ErrorHeld queue.
  5. Exit InvokeGRE workflow.
  6. The FindListObjectItem subroutine is invoked to determine the name of the Genesys Rules Engine Application. The subroutine uses the List Object list GREServerList:
    • vInItemNameGREServerList
    • vInListNameIwd_Esp_List
  7. Check if vInCustomPackageName was published to this subroutine. If it is set then vInCustomPackageName will be run. Otherwise package name needs to be found in Iwd_Package_List.
  8. Assign vInCustomPackageName to vGrePackageName.
  9. Delete IWD_GRE_Result, IWD_Error, RulePhase before Invoke GRE.
  10. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_GRE_Determination_Error
    • vInLastErrorString—Error description that occurred in FindListObjectItem subroutine.
  11. The FindListObjectItem subroutine is invoked to determine the name of the rule package that the Genesys Rules Engine will be invoking to evaluate the classification rules:
    • vInItemNameRulePackageList
    • vInListNameIwd_Package_List
  12. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_Rule_Package_Determination_Error
    • vInLastErrorString—Error description that occurred in FindListObjectItem subroutine.
  13. An ESP request is sent to the Genesys Rules Engine to evaluate the classification rules.
    Important
    All user data that needs to be added to ESP request must be added in User Data attributes.
  14. Parse ESP result and attach to the interaction all attributes modified by the GRE.
  15. Assign the string AfterEspCallActivities timeout to the vLastError variable.
  16. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_GRE_Error
    • vInLastErrorString—Error informs that: Attach GreResult timeout
  17. The interaction is placed in the iwd_bp_comp.Main.iWD_ErrorHeld queue.
  18. Exit InvokeGRE workflow.
  19. A delay is introduced, based on the value of the vInxSrvResponseWaitMs variable which can be set in the Entry block.
  20. CheckBusinessValueAndPriority subroutine is called to verify if IWD_businessValue and Priority have correct values.
  21. Check if in_method_name is set to SetBusinessContext or Prioritize.
  22. Check if IWD_processId was set by any rules or when task was created.
  23. Check is made to see if this is the first time that prioritization rules are being evaluated for the interaction, and the priority was not set up by any rules.
  24. Get last error that was occured in GRE call and assign it to vLastError variable.
  25. A check is done to see if the error code is related to the ESP server communication.
  26. A delay is introduced, based on the value of the _delay_ms variable. The flow goes back to step 11 to retry the connection to the ESP server.
  27. The last Interaction Server-related error is extracted from a variable.
  28. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_GRE_Error
    • vInLastErrorString—The last Interaction Server-related error is extracted from a variable.
  29. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_GRE_Error
    • vInLastErrorString—The last Interaction Server-related error is extracted from a variable.
  30. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_GRE_Error
    • vInLastErrorString—The last Interaction Server-related error is extracted from a variable
  31. The interaction is placed in the iwd_bp_comp.Main.iWD_Rejected queue.
  32. Exit InvokeGRE workflow.
  33. Invoke AssignLastError subroutine with attributes:
    • vInLastErrorkeyIWD_Prioritization_Error
    • vInLastErrorString—Error description: 'Priority is not set up by rules'.
  34. The interaction is placed in the iwd_bp_comp.Main.iWD_Queued queue.
  35. The interaction is placed in the iwd_bp_comp.Main.iWD_Captured queue.
  36. The interaction is placed in the iwd_bp_comp.Main.iWD_ErrorHeld queue.
  37. Exit InvokeGRE workflow.

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on August 1, 2018, at 02:28.