Fork me on GitHub

Template helloworld@0.7.0

Clause Ergo ^0.9.1 1392378416725ff45d421aac1cba35a80d47725de2550660f4244d2c01b59e81

This is the Hello World of Accord Protocol Templates. Executing the clause will simply echo back the text that occurs after the string `Hello` prepended to text that is passed in the request.

Download Archive Open in Template Studio

Hello World

This is the Hello World of Accord Protocol Templates. Executing the clause will simply echo back the text that occurs after the string Hello prepended to text that is passed in the request.

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.helloworld.HelloWorldClause",
    "clauseId": "74b7641a-7b6f-4d1d-bc3e-55ca1761ceb0",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "5ddc7fd2-dd3f-11e8-a95c-95b9dbcf241c"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Ad.",
    "transactionId": "5ddc7fd0-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:26.221Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Sunt veniam.",
    "transactionId": "5ddc7fd1-dd3f-11e8-a95c-95b9dbcf241c",
    "timestamp": "2018-10-31T19:01:26.221Z"
}

Events Types

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