Hello World State

helloworldstate@0.12.1 Clause ^0.13.0 4aba69521b2de71c1b1a10aa02af5a357db97c652f1637b1a4508a36a2b5d329

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 Open in VSCode Web

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": "144df5ef-bbd2-4a54-aa6a-55c8c3a147cf",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 127.676,
    "stateId": "2a0e9e02-b399-11e9-a415-2f2abeed0243"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Consequat qui proident.",
    "transactionId": "2a0e9e00-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:22.848-04:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Fugiat nisi consequat magna.",
    "transactionId": "2a0e9e01-b399-11e9-a415-2f2abeed0243",
    "timestamp": "2019-07-31T09:43:22.848-04:00"
}

Events Types

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