Hello World
This is the Hello World of Accord Project 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.
This is the Hello World of Accord Project 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.
This is the Hello World of Accord Project 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.
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.helloworld.HelloWorldClause",
"name": "Fred Blogs",
"clauseId": "029212db-1e3b-46eb-992d-1c8db5ee812a",
"$identifier": "029212db-1e3b-46eb-992d-1c8db5ee812a"
}
namespace org.accordproject.helloworld
import org.accordproject.contract.* from https://models.accordproject.org/accordproject/contract.cto
import org.accordproject.runtime.* from https://models.accordproject.org/accordproject/runtime.cto
transaction MyRequest extends Request {
o String input
}
transaction MyResponse extends Response {
o String output
}
/**
* The template model
*/
asset HelloWorldClause extends Clause {
/**
* The name for the clause
*/
o String name
}
// this is a change!
Find the full logic for this template on on GitHub.
Type | Sample JSON |
---|---|
org.accordproject.runtime.State |
|
Type | Sample JSON |
---|---|
org.accordproject.helloworld.MyRequest |
|
Type | Sample JSON |
---|---|
org.accordproject.helloworld.MyResponse |
|
Type | Sample JSON |
---|---|
concerto.Event |
|
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.