Hello World State

helloworldstate@0.13.0 Clause ^0.20.0 bb863fb0a3ccd796eb3c6e9e244758201cc12673d53b74ec2f859d8abebc5e11

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.

Template Text

Grammar

Name of the person to greet: {{name}}.
Thank you!

Sample

Name of the person to greet: "Fred Blogs".
Thank you!

Sample Data

{
    "$class": "org.accordproject.helloworldstate.HelloWorldClause",
    "clauseId": "cf274b32-b6dc-44f7-83d9-036d842463ea",
    "name": "Fred Blogs"
}

Template Model

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 6.802,
    "stateId": "f22866a1-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Exercitation qui.",
    "transactionId": "f2283f90-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:02.729-05:00"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Commodo dolore reprehenderit.",
    "transactionId": "f22866a0-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:02.730-05:00"
}

Events Types

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

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 GitHub.