Please report issues and contribute improvements on GitHub!

Template hellomodule@0.4.0

Clause ^0.12.0 924902fa20e95c18e92b512d32d374fcc9e93f84a17a18a4d7d592d3afab2a9f

This is the Hello World of Accord Project Templates, with two Ergo modules.

Download Archive Open in Template Studio

Hello Module

This is the Hello World of Accord Project Templates, with two Ergo modules.

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.hellomodule.HelloModuleClause",
    "clauseId": "cf4a2495-6225-4f85-8785-5ce7b7f309ca",
    "name": "Fred Blogs"
}

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "c80d9860-575d-11e9-9ffa-db0629e5d319"
}

Request Types

Type Sample JSON
org.accordproject.hellomodule.MyRequest
{
    "$class": "org.accordproject.hellomodule.MyRequest",
    "input": "Dolor adipisicing irure.",
    "transactionId": "c80cfc20-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:31.138-04:00"
}

Response Types

Type Sample JSON
org.accordproject.hellomodule.MyResponse
{
    "$class": "org.accordproject.hellomodule.MyResponse",
    "output": "Dolor.",
    "transactionId": "c80d4a40-575d-11e9-9ffa-db0629e5d319",
    "timestamp": "2019-04-05T00:46:31.141-04:00"
}

Events Types

Type Sample JSON
org.accordproject.base.Event
{
    "abstract": "this is an abstract type"
}