Fork me on GitHub

Template helloworldstate@0.6.0

Clause Ergo ^0.7.1 8175d2fbe41fe433787c063742812f70b0fd595809e19221f4cf1dc6c03ed288

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": "8bbe7d02-e277-450a-a764-076ff0687205",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "6f407a40-ac5e-11e8-ae05-7b30d9585bc6"
}

Request Types

Type Sample JSON
org.accordproject.helloworldstate.MyRequest
{
    "$class": "org.accordproject.helloworldstate.MyRequest",
    "input": "Dolor.",
    "transactionId": "6f405330-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:22.819Z"
}

Response Types

Type Sample JSON
org.accordproject.helloworldstate.MyResponse
{
    "$class": "org.accordproject.helloworldstate.MyResponse",
    "output": "Dolor.",
    "transactionId": "6f405331-ac5e-11e8-ae05-7b30d9585bc6",
    "timestamp": "2018-08-30T14:10:22.819Z"
}

Events Types

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