Fork me on GitHub

Template helloworld@0.7.1

Clause Ergo ^0.9.1 8a19884b84379baf54a96d7261e3169d81b3e6f992cdb7d28e49a33dca307aae

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": "d3fc9dc8-6a9e-4ed6-96b8-d634c9cb1842",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "2718cd71-ee63-11e8-90b2-8532f3de0ed9"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Non velit quis minim et.",
    "transactionId": "2718a660-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.990Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Ea ullamco dolore magna dolor.",
    "transactionId": "2718cd70-ee63-11e8-90b2-8532f3de0ed9",
    "timestamp": "2018-11-22T14:30:25.991Z"
}

Events Types

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