Template helloworldstate@0.11.1

Clause ^0.12.0 8b6e04b9911d5c95fc219f2bc532cfe714bffffbe4d7a8e201b5e77d1b3906c0

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": "0994922a-e5d5-4d4d-93c9-59e099cf545d",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 108.436,
    "stateId": "1f0a8222-8942-11e9-b9ba-87d1cf618bec"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Dolor est sunt.",
    "transactionId": "1f0a8220-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:29.314-04:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Tempor aliquip voluptate ut adipisicing.",
    "transactionId": "1f0a8221-8942-11e9-b9ba-87d1cf618bec",
    "timestamp": "2019-06-07T12:34:29.314-04:00"
}

Events Types

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