Please report issues and contribute improvements on GitHub!

Template helloworld@0.8.0

Clause Ergo ^0.10.0 1265c34e9a98207dab3fd9eba59a6a4d3be6c0a2d7bec09d556f5183dde8770d

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": "7f9ad4e5-3494-4bbb-b4aa-8f9cd600889b",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "e47fc7e0-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "In officia Lorem.",
    "transactionId": "e47f79c0-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:57.788Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Sit irure consequat.",
    "transactionId": "e47fa0d0-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:57.789Z"
}

Events Types

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