Hello Module

hellomodule@0.6.0 Clause ^0.20.0 00f20a5a9d8099158dbd2cc94c9050381aceba5e8c379c1391d93cf3c3459f00

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.

Template Text

Grammar

Name of the person to greet: {{name}}.
Thank you!

Sample

Name of the person to greet: "Fred Blogs".
Thank you!

Sample Data

{
    "$class": "org.accordproject.hellomodule.HelloModuleClause",
    "clauseId": "e2a6a11f-8459-4cad-b5bb-3b4b84f57c70",
    "name": "Fred Blogs"
}

Template Model

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.cicero.contract.AccordContractState
{
    "$class": "org.accordproject.cicero.contract.AccordContractState",
    "stateId": "f09b5e02-ff3e-11e9-b361-efc0ae54bdd6"
}

Request Types

Type Sample JSON
org.accordproject.hellomodule.MyRequest
{
    "$class": "org.accordproject.hellomodule.MyRequest",
    "input": "Esse eiusmod ullamco magna ea.",
    "transactionId": "f09b5e00-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:00.128-05:00"
}

Response Types

Type Sample JSON
org.accordproject.hellomodule.MyResponse
{
    "$class": "org.accordproject.hellomodule.MyResponse",
    "output": "Quis do laboris laboris.",
    "transactionId": "f09b5e01-ff3e-11e9-b361-efc0ae54bdd6",
    "timestamp": "2019-11-04T15:09:00.128-05:00"
}

Events Types

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

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 GitHub.