Please report issues and contribute improvements on GitHub!

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

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": "62e785f7-cb0a-40d1-8d4d-780e9b386ca0",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 132.693,
    "stateId": "958a1741-60ab-11e9-ba69-a3cec1fc66e2"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Magna aute ea.",
    "transactionId": "9589f030-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:07.603+00:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Esse.",
    "transactionId": "958a1740-60ab-11e9-ba69-a3cec1fc66e2",
    "timestamp": "2019-04-17T00:56:07.604+00:00"
}

Events Types

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