Fork me on GitHub

Template helloworld@0.2.0

This is the Hello World of Accord Protocol 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

Hello World

This is the Hello World of Accord Protocol 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": "259f4431-f43f-43cf-b27e-dd9ba6ae4c29",
    "name": "Fred Blogs"
}

State

{
    "state": "tbd"
}

Request Types

Type Sample JSON
org.accordproject.helloworld.MyRequest
{
    "$class": "org.accordproject.helloworld.MyRequest",
    "input": "Occaecat.",
    "transactionId": "6b65e420-7624-11e8-b40c-afeb84922002",
    "timestamp": "2018-06-22T13:59:02.754Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworld.MyResponse
{
    "$class": "org.accordproject.helloworld.MyResponse",
    "output": "Adipisicing.",
    "transactionId": "6b660b30-7624-11e8-b40c-afeb84922002",
    "timestamp": "2018-06-22T13:59:02.755Z"
}

Events Types

Type Sample JSON