Please report issues and contribute improvements on GitHub!

Template helloworldstate@0.9.0

Clause Ergo ^0.10.0 9a42cbb75fc67a57cfaae78b219380452a1f959036ca6298bf7afdc686d66059

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

Download Archive Open in Template Studio

Hello World State

This is the stateful 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 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",
    "clauseId": "165d4873-070e-4656-8263-8427ac1e36e1",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 15.22,
    "stateId": "e4b35b05-152a-11e9-8d02-47431788edc9"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "e4b35b00-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:58.128Z"
}
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Laborum esse non mollit occaecat.",
    "transactionId": "e4b35b01-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:58.128Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "e4b35b02-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:58.128Z"
}
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Cillum occaecat fugiat ad aute.",
    "transactionId": "e4b35b03-152a-11e9-8d02-47431788edc9",
    "timestamp": "2019-01-10T22:55:58.128Z"
}

Events Types

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