Fork me on GitHub

Template helloworldstate@0.1.0

This is the stateful 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 along with the number of times the clause has been called.

Download Archive

Hello World State

This is the stateful 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 along with the number of times the clause has been called.

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.helloworldstate.HelloWorldClause",
    "name": "Est ullamco sunt Lorem anim.",
    "clauseId": "f4a37240-6de9-11e8-a111-7f3aa50554dd"
}

State

{
    "state": "tbd"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Enim exercitation eiusmod elit.",
    "transactionId": "f4a39950-6de9-11e8-a111-7f3aa50554dd",
    "timestamp": "2018-06-12T02:40:23.397Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Ea magna laboris aliqua culpa.",
    "transactionId": "f4a3c060-6de9-11e8-a111-7f3aa50554dd",
    "timestamp": "2018-06-12T02:40:23.398Z"
}

Events Types

Type Sample JSON