Hello Module

Author: Accord Project

hellomodule@0.10.0 Clause ^0.26.0 2a5eb013e76cd830142f6ea4a9e1f3a98e9b4001eecb9e61fc7642038c23335f

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

Download Archive Download Compiled Archive Open in Template Playground Open in VSCode Web

Hello Module

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

Template Text

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

Name of the person to greet: "Fred Blogs".
Thank you!
Name of the person to greet: {{name}}.
Thank you!
{
  "$class": "org.accordproject.hellomodule@0.1.0.TemplateModel",
  "name": "Fred Blogs",
  "clauseId": "f7a54995-ce97-4245-91aa-75e0f34d2b78",
  "$identifier": "f7a54995-ce97-4245-91aa-75e0f34d2b78"
}

Template Model

namespace org.accordproject.hellomodule@0.1.0

import org.accordproject.contract@0.2.0.Clause from https://models.accordproject.org/accordproject/contract@0.2.0.cto
import org.accordproject.runtime@0.2.0.{Request,Response} from https://models.accordproject.org/accordproject/runtime@0.2.0.cto

transaction MyRequest extends Request {
  o String input
}

transaction MyResponse extends Response {
  o String output
}

@template
asset TemplateModel extends Clause {
  o String name
}

Model Dependencies

Template Logic

Find the full logic for this template on on GitHub.

State Types

Type Sample JSON
org.accordproject.runtime@0.2.0.State
{
    "$class": "org.accordproject.runtime@0.2.0.State",
    "$identifier": "79e3b1e0-50a4-11f1-a498-6b6dff021a96"
}

Request Types

Type Sample JSON
org.accordproject.hellomodule@0.1.0.MyRequest
{
    "$class": "org.accordproject.hellomodule@0.1.0.MyRequest",
    "input": "Anim esse veniam.",
    "$timestamp": "2026-05-15T21:24:37.502Z"
}
org.accordproject.runtime@0.2.0.Request
{
    "$class": "org.accordproject.runtime@0.2.0.Request",
    "$timestamp": "2026-05-15T21:24:37.502Z"
}

Response Types

Type Sample JSON
org.accordproject.hellomodule@0.1.0.MyResponse
{
    "$class": "org.accordproject.hellomodule@0.1.0.MyResponse",
    "output": "Consectetur adipisicing.",
    "$timestamp": "2026-05-15T21:24:37.502Z"
}
org.accordproject.runtime@0.2.0.Response
{
    "$class": "org.accordproject.runtime@0.2.0.Response",
    "$timestamp": "2026-05-15T21:24:37.502Z"
}

Events Types

Type Sample JSON

Technical Integration

Please refer to the Accord Project documentation for how to use a template or integrate it within your application.

View the Latest code for this template on GitHub.