Hello World

helloworld@0.12.0 Clause ^0.20.0 c0e96b6703a4896e2375f275adf45a16f194962b7ddb7611d317f95065ac4f25

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.

Template Text

Grammar

Name of the person to greet: {{name}}.
Thank you!

Sample

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

Sample Data

{
    "$class": "org.accordproject.helloworld.HelloWorldClause",
    "clauseId": "35c1bfdb-f505-4e12-bf92-7beaaada9d93",
    "name": "Fred Blogs"
}

Template Model

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "f14d21d1-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Cupidatat.",
    "transactionId": "f14cfac0-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:01.292-05:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Eu voluptate in consectetur elit.",
    "transactionId": "f14d21d0-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:01.293-05:00"
}

Events Types

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

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 GitHub.