digraph G {
nPreSearchContract[fillcolor=palegreen3, style="rounded,filled",label="1. searchContract"]
nPreGetContractID[fillcolor=palegreen3, style="rounded,filled",label="2. getContractID"]
nCreateAgentStatement[fillcolor=palegreen3, style="rounded,filled",label="3. createAgentStatement"]
nGetResultProcessing[fillcolor=palegreen3, style="rounded,filled",label="4. getResultProcessing"]
nSearchContract[fillcolor=palegreen3, style="rounded,filled",label="5. searchContract"]
nGetContractID[fillcolor=palegreen3, style="rounded,filled",label="6. getContractID"]
nChangeContractState[fillcolor=palegreen3, style="rounded,filled",label="7. changeContractState"]
nGetNssoStatus[fillcolor=palegreen3, style="rounded,filled",label="8. getNssoStatus"]
nNextAgentStatement[fillcolor=palegreen3, style="rounded,filled",label="9. nextAgentStatement"]
nExit[fillcolor=gray, style="rounded,filled",label="Exit"]
nPreSearchContract -> nPreGetContractID[label=" Result = 0"]
nPreSearchContract -> nCreateAgentStatement[label=" Result = -1"]
nPreGetContractID -> nChangeContractState[label=" Result = 0"]
nPreGetContractID -> nChangeContractState[label=" Result = -1"]
nCreateAgentStatement -> nGetResultProcessing[label=" Result = 0"]
nCreateAgentStatement -> nChangeContractState[label=" Result = -1"]
nGetResultProcessing -> nSearchContract[label=" Result = 0"]
nGetResultProcessing -> nGetResultProcessing[label=" Result = 1"]
nGetResultProcessing -> nChangeContractState[label=" Result = -1"]
nGetResultProcessing -> nNextAgentStatement[label=" Result = 2"]
nSearchContract -> nGetContractID[label=" Result = 0"]
nSearchContract -> nChangeContractState[label=" Result = -1"]
nGetContractID -> nChangeContractState[label=" Result = 0"]
nGetContractID -> nChangeContractState[label=" Result = -1"]
nChangeContractState -> nGetNssoStatus[label=" Result = 0"]
nChangeContractState -> nExit[label=" Result = -1"]
nGetNssoStatus -> nGetNssoStatus[label=" Result = 1"]
nGetNssoStatus -> nExit
nNextAgentStatement -> nCreateAgentStatement[label=" Result = 0"]
nNextAgentStatement -> nChangeContractState[label=" Result = -1"]
}