Fork me on GitHub

Template helloworldstate@0.7.1

Clause Ergo ^0.8.0 2661f983c8163036e54a7f238750e9a28abad5c1a7c9774c18a32cf1b295f79f

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": "74f59e15-b66d-4e23-8775-d870e9aa3d10",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.helloworldstate.HelloWorldState
{
    "$class": "org.accordproject.helloworldstate.HelloWorldState",
    "counter": 100.452,
    "stateId": "77130253-bda8-11e8-924e-73796d817a72"
}

Request Types

Type Sample JSON
org.accordproject.cicero.runtime.Request
{
    "$class": "org.accordproject.cicero.runtime.Request",
    "transactionId": "7712b430-bda8-11e8-924e-73796d817a72",
    "timestamp": "2018-09-21T14:13:08.467Z"
}
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Deserunt tempor non non nisi.",
    "transactionId": "7712db40-bda8-11e8-924e-73796d817a72",
    "timestamp": "2018-09-21T14:13:08.468Z"
}

Response Types

Type Sample JSON
org.accordproject.cicero.runtime.Response
{
    "$class": "org.accordproject.cicero.runtime.Response",
    "transactionId": "77130250-bda8-11e8-924e-73796d817a72",
    "timestamp": "2018-09-21T14:13:08.469Z"
}
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Nostrud quis pariatur nostrud dolor.",
    "transactionId": "77130251-bda8-11e8-924e-73796d817a72",
    "timestamp": "2018-09-21T14:13:08.469Z"
}

Events Types

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