Hello World

helloworld@0.11.1 Clause ^0.13.0 debfe8c4cdd9ef46e0604943a535718a478f324de0f65032031899ef93fd87bc

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": "f1e9b6a3-62a8-4836-9fa4-954f9b3b1738",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "29db8011-b399-11e9-a415-2f2abeed0243"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Enim labore exercitation.",
    "transactionId": "29db31f0-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:22.512-04:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Mollit culpa.",
    "transactionId": "29db8010-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:22.513-04:00"
}

Events Types

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