Fork me on GitHub

Template helloworldstate@0.7.0

Clause Ergo ^0.8.0 d1fe91d7848ae28a8ac5c231be1f25da45fdbe2bdac37342aa36032e3750db09

This is the stateful Hello World of Accord Protocol 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

Hello World State

This is the stateful Hello World of Accord Protocol 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": "e51035ca-19b8-4489-ae67-685b1757a22a",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 188.902,
    "stateId": "075cfe30-b5f5-11e8-98f1-f70046c609b7"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Enim nostrud est.",
    "transactionId": "075cd720-b5f5-11e8-98f1-f70046c609b7",
    "timestamp": "2018-09-11T19:01:02.994Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Sunt laborum mollit nisi.",
    "transactionId": "075cd721-b5f5-11e8-98f1-f70046c609b7",
    "timestamp": "2018-09-11T19:01:02.995Z"
}

Events Types

Type Sample JSON
org.hyperledger.composer.system.Event
{
    "abstract": "this is an abstract type"
}