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.
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.
Name of the person to greet: "Fred Blogs".
Thank you!
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"
}
|