Sign a contract with two signers

A sales rep sends a contract from a won deal to two people at the customer, who sign at an e-signature service in any order. When both have signed, the account is activated and a signed copy is emailed. If either signer declines, the request stops for both and the rep can edit and resend; a signer who does not answer in 30 days ends the request as expired.

15 screens and steps18 arrows0 warnings

What UJN shows here Point at a note to see its part of the drawing

Sign a contract with two signers  ESIGNTwo signers sign at an e-signature service, in any order. When both have signed, the account goes liveSales rep (Actor) Role: SalesActorSales repSalesStart From a won dealStartFrom a won dealSend contract (View) Contract and two signers Route: /deals/:id/contract Trace: story:CONTRACTS-214, test:e2e/contract-signing.spec.ts Id: unique id 88c39840e09ViewSend contractContract and two signers/deals/:id/contractSend for signature (Action)ActionSend for signatureE-signature service (System, external) Host: api.sign.exampleSystem, externalE-signature serviceapi.sign.exampleAction, forkSigner 1 answers (Event) Buyer, from the e-signature service Timeout: 30 dEventSigner 1 answersBuyer, from the e-signature service30 dSigner 2 answers (Event) Legal, from the e-signature service Timeout: 30 dEventSigner 2 answersLegal, from the e-signature service30 dContract declined (View) With the signer's reason Route: /contracts/:idViewContract declinedWith the signer's reason/contracts/:idEnd, failure Expired, no answer from signer 1End, failureExpired, no answer from signer 1End, failure Expired, no answer from signer 2End, failureExpired, no answer from signer 2Action, joinActivate account (Action)ActionActivate accountSend signed copy (Message) To the rep and both signers Channel: emailMessageSend signed copyTo the rep and both signersemailEnd, success Account activeEnd, successAccount activeNo label Navigation from Sales rep to from_dealNo label Navigation from from_deal to Send contractSend for signature Navigation from Send contract to Send for signature Payload: {contract, signers}Send for signature{contract, signers}No label Navigation from Send for signature to bothNo label Navigation from both to Signer 1 answersNo label Navigation from both to Signer 2 answerssigned Navigation from Signer 2 answers to all_signedsigneddeclined Negative from Signer 2 answers to Contract declineddeclinedsigned Navigation from Signer 1 answers to all_signedsigneddeclined Negative from Signer 1 answers to Contract declineddeclinedEdit and resend Navigation from Contract declined to Send contractEdit and resendNo label Navigation from all_signed to Activate accountNo label Navigation from Activate account to activeNo label Navigation, call from Send for signature to E-signature service Payload: {contract, signers}{contract, signers}timeout Negative from Signer 2 answers to expired_btimeouttimeout Negative from Signer 1 answers to expired_atimeoutNo label Navigation from Activate account to Send signed copyNo label Return, reply from E-signature service to Send for signature Payload: {request_id}{request_id}
The source (48 lines)
e-sign.puml
@startujnrender { direction: down; arrow_spacing: 24 }journey ESIGN "Sign a contract with two signers"description: "Two signers sign at an e-signature service, in any order. When both have signed, the account goes live"unique_id_friendly: esign actor rep { title: "Sales rep"; role: Sales }start from_deal { description: "From a won deal" }view send_form{  title: "Send contract"  description: "Contract and two signers"  route: /deals/:id/contract  trace: [story:CONTRACTS-214, test:e2e/contract-signing.spec.ts]  unique_id: 88c39840e09  ' AUTO GENERATED - DO NOT CHANGE}action send { title: "Send for signature" }system esign { type: external; title: "E-signature service"; host: api.sign.example }action both { type: fork }action signer_a { type: event; title: "Signer 1 answers"; description: "Buyer, from the e-signature service"; timeout: 30 d }action signer_b { type: event; title: "Signer 2 answers"; description: "Legal, from the e-signature service"; timeout: 30 d }view declined { title: "Contract declined"; description: "With the signer's reason"; route: /contracts/:id }end expired_a { type: failure; description: "Expired, no answer from signer 1" }end expired_b { type: failure; description: "Expired, no answer from signer 2" }action all_signed { type: join }action activate { title: "Activate account" }action send_copy { type: message; title: "Send signed copy"; description: "To the rep and both signers"; channel: email }end active { type: success; description: "Account active" } rep --> from_dealfrom_deal --> send_formsend_form --> send : [Send for signature] { payload: [contract, signers] }send -right-> esign { payload: [contract, signers] }esign ..> send { payload: [request_id] }send --> bothboth --> signer_aboth --> signer_bsigner_b --> all_signed : signedsigner_b -x-> declined : declinedsigner_b -right-x-> expired_b : timeoutsigner_a --> all_signed : signedsigner_a -x-> declined : declinedsigner_a -left-x-> expired_a : timeoutdeclined -up-> send_form : [Edit and resend]all_signed --> activateactivate -right-> send_copyactivate --> active@endujn