Please report issues and contribute improvements on GitHub!

Template helloworldstate@0.10.0

Clause Ergo ^0.11.1 1da868735243d740d7f3b8b5305581c59091cb25a8a9b50ef108019cf20b0d27

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": "1d48be25-da57-4fd2-b82c-91ef1608d7af",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 219.629,
    "stateId": "2991e251-4bae-11e9-8561-af645d56312b"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Consectetur irure.",
    "transactionId": "2991bb40-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:40.533+00:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Sit nostrud.",
    "transactionId": "2991e250-4bae-11e9-8561-af645d56312b",
    "timestamp": "2019-03-21T07:51:40.533+00:00"
}

Events Types

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