Fork me on GitHub

Template hellomodule@0.1.0

Clause Ergo ^0.9.7 6692dedcea0f13d1d91abfbfc9bc677c772883e5dd3c0b58894752051c653e4f

This is the Hello World of Accord Protocol Templates, with two Ergo modules.

Download Archive Open in Template Studio

Hello Module

This is the Hello World of Accord Protocol Templates, with two Ergo modules.

Sample

Name of the person to greet: "Fred Blogs".
Thank you!
                

Model Dependencies

Technical Integration

Please refer to the Cicero documentation for details and examples of how to integrate a call to a Cicero template into your application.

View the Latest code for this template on on GitHub.

Sample Instance

{
    "$class": "org.accordproject.hellomodule.HelloModuleClause",
    "clauseId": "4468003f-2c83-496d-99aa-ffeddc31ad26",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "9037c400-e9e0-11e8-bb9b-95de3e0e8c80"
}

Request Types

Type Sample JSON
org.accordproject.hellomodule.MyRequest
{
    "$class": "org.accordproject.hellomodule.MyRequest",
    "input": "Sunt elit aliqua officia officia.",
    "transactionId": "90374ed0-e9e0-11e8-bb9b-95de3e0e8c80",
    "timestamp": "2018-11-16T20:45:33.629Z"
}

Response Types

Type Sample JSON
org.accordproject.hellomodule.MyResponse
{
    "$class": "org.accordproject.hellomodule.MyResponse",
    "output": "Laboris.",
    "transactionId": "90379cf0-e9e0-11e8-bb9b-95de3e0e8c80",
    "timestamp": "2018-11-16T20:45:33.631Z"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}