Pigeon Agents Development Demo Log Off - DatasmithSA/Pigeon-Voice-Training GitHub Wiki

As mentioned in previous process flows, the operator has the option of signing off from the system by issuing the "sign me off" command. The Voice Application will then enter the Log Off process.

/images/demo/Pigeon-Voice-Demo-Log-Off.png

Yellow nodes in the flow chart indicate sub-processes. Blue nodes indicate prompts that the device speaks out to operator. Red links between nodes indicates an operator's response. Transparent nodes indicate background software logic that happens without interaction from the user.

  • Confirm Sign Off: the device prompts the operator to confirm that he/she wants to sign off by asking "Sign off" and the operator ID e.g. "Sign off John?". At this point the operator can either confirm or cancel out of the sign off process:
    • Cancel: if the operator responds with "no", the Voice Application will exit the Log Off process and return back to which ever process that initiated the Log Off Process e.g. Get Picking Data or Picking process.
    • Confirm: if the operator confirms by saying "yes", the Voice Application will continue to the next state.
  • Call LutLogOffAgent: a LUT message request is made to the Pigeon LutLogOffAgent to log the operator off the system. No input parameters are required due to the Voice Application including the operator ID in every LUT and ODR message request. N.B. keep in mind that requests to LUT agents are blocking calls, meaning that the device waits for a response from the server before continuing to the next state.
  • Check Result Code: the Pigeon LutLogOffAgent will respond with a Result Code and Result Message.
    • If the result code is 0, it indicates a success, in which case the Voice Application continues to the next state where the device prompts the operator with "Goodbye. Remember to switch off terminal." Thereafter it will return to the original Login process prompting the operator with the welcome prompt and requesting the password to log back in.
    • Any other result code indicates a failure, in which case the device speaks out the Result Message received from the agent and requires the operator to say "ready" to continue. Once the operator says "ready" the Voice Application will exit the Log Off process and return back to which ever process that initiated the Log Off Process e.g. Get Picking Data or Picking process.