Templates / Document processing / document-signature

Document E-Signature

Generates an agreement, sends it for e-signature and waits for the provider's callback, correlated on the envelope id. A signed agreement is archived; a declined one goes back to its owner; and if nothing comes back in 14 days an interrupting timer voids the envelope so it cannot be signed late.

receive taskmessage correlationtimer boundarye-signature
Open in editor Download .bpmn
casen template use document-signature
signed declined Generateagreement Send forsignature Awaitsigningoutcome Voidenvelope Archivesignedagreement Notifyowner:declined Agreement requested 14days Envelope expired Signed? Agreement signed Agreement declined

Scenarios · 2

  • The counterparty signs and the agreement is archived send-envelope → await-signature → archive-document → agreement-signed
  • The counterparty declines and the owner is told await-signature → notify-owner → agreement-declined

Job types · 5

  • dms-archive Archive signed agreement
  • document-generate Generate agreement
  • esign-envelope-send Send for signature
  • esign-envelope-void Void envelope
  • owner-notify Notify owner: declined

Files · 2

Every scenario passes on @bpmnkit/engine's runScenario in the package's tests. casen template use document-signature [dir] writes the files above into your project — see the templates guide for running the scenarios and deploying.