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": "165d4873-070e-4656-8263-8427ac1e36e1",
"name": "Fred Blogs"
}
State Types
Type |
Sample JSON |
org.accordproject.helloworldstate.HelloWorldState |
{
"$class": "org.accordproject.helloworldstate.HelloWorldState",
"counter": 15.22,
"stateId": "e4b35b05-152a-11e9-8d02-47431788edc9"
}
|
Request Types
Type |
Sample JSON |
org.accordproject.cicero.runtime.Request |
{
"$class": "org.accordproject.cicero.runtime.Request",
"transactionId": "e4b35b00-152a-11e9-8d02-47431788edc9",
"timestamp": "2019-01-10T22:55:58.128Z"
}
|
org.accordproject.helloworldstate.MyRequest |
{
"$class": "org.accordproject.helloworldstate.MyRequest",
"input": "Laborum esse non mollit occaecat.",
"transactionId": "e4b35b01-152a-11e9-8d02-47431788edc9",
"timestamp": "2019-01-10T22:55:58.128Z"
}
|
Response Types
Type |
Sample JSON |
org.accordproject.cicero.runtime.Response |
{
"$class": "org.accordproject.cicero.runtime.Response",
"transactionId": "e4b35b02-152a-11e9-8d02-47431788edc9",
"timestamp": "2019-01-10T22:55:58.128Z"
}
|
org.accordproject.helloworldstate.MyResponse |
{
"$class": "org.accordproject.helloworldstate.MyResponse",
"output": "Cillum occaecat fugiat ad aute.",
"transactionId": "e4b35b03-152a-11e9-8d02-47431788edc9",
"timestamp": "2019-01-10T22:55:58.128Z"
}
|
Events Types
Type |
Sample JSON |
org.accordproject.base.Event |
{
"abstract": "this is an abstract type"
}
|