Template helloworld@0.11.0

Clause ^0.13.0 d2ba1f504b74c1dc56e9eabe36a653eb8b437434ea940fb0b0feafd7cc520c9d

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 Open in VSCode Web

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": "0d2ecd66-8cde-432b-9b0d-e29ff57a1529",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "74d9af11-9cce-11e9-9a6f-d5f6456622aa"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Veniam ex.",
    "transactionId": "74d98800-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:54.912-04:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Amet aliquip magna.",
    "transactionId": "74d9af10-9cce-11e9-9a6f-d5f6456622aa",
    "timestamp": "2019-07-02T09:36:54.913-04:00"
}

Events Types

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