Generate class diagram from java code online
to generate online diagram click on given link and paste the script click
title saveAgreementConsent
participant Client
participant Enterprise Service
participant Agreement Service
participant OSB
Client -> Enterprise Service: saveAgreementConsent
Request
note right of Client
Method Type: POST
{
"accountNumber": "string",
"agreementId": 0,
"agreementName": "string",
"agreementType": "string",
"confirm": true,
"transactionId": "string"
"divisionId": "string"
}
end note
Enterprise Service -> Enterprise Service: check
"agreementId"
alt agreementId == 1 i.e., agreementType == E911
note over Client, Enterprise Service, Agreement Service:
'Flow A' starts
Enterprise Service -> Agreement Service: Invoke updateAgreement
operation
Agreement Service --> Enterprise Service: updateAgreement
Response
Enterprise Service --> Client: saveAgreementsConsent
Response
note over Client, Enterprise Service, Agreement Service:
'Flow A' stops
end
alt agreementId == 2 i.e., agreementType == T&C
Enterprise Service -> Enterprise Service: Repeat 'Flow A'
end
alt agreementId == 3 i.e., agreementType == PrivacyPolicy
Enterprise Service -> SPC Service: getDivisionID
SPC Service--> Enterprise Service: Response (MSO)
alt if MSO=="L-CHTR"
Enterprise Service -> OSB: Invoke
createAccountAgreementsConsent operation (OSB)
OSB --> Enterprise Service:
createAccountAgreementsConsent Response
Enterprise Service --> Client: saveAgreementConsent
Response
end
alt if MSO=="L-BHN" || "L-TWC"
Enterprise Service -> Enterprise Service: Repeat 'Flow A'
Enterprise Service --> Client: saveAgreementConsent
Response
end
end
No comments:
Post a Comment