Fork me on GitHub

Template helloworld@0.7.2

Clause Ergo ^0.9.1 413eeb3db28b837e188e129486a71d35a1a18801451b920a76fb6210bee4f5b4

This is the Hello World of Accord Project 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 Project 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": "58257ed9-98d6-4e2c-9fc7-4480fe4f717e",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "845596e0-f731-11e8-b34f-ed4d9575bdd0"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Irure.",
    "transactionId": "845521b0-f731-11e8-b34f-ed4d9575bdd0",
    "timestamp": "2018-12-03T19:27:48.043Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Ea minim.",
    "transactionId": "84556fd0-f731-11e8-b34f-ed4d9575bdd0",
    "timestamp": "2018-12-03T19:27:48.045Z"
}

Events Types

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