= Getting Started
Gary Brown
2015-04-21
:description: How to get started with Scribble
:jbake-type: page
:jbake-status: published
:icons: font

== Getting Started with Scribble.

----
module examples;

global protocol HelloWorld(role Me, role World) {
	hello(Greetings) from Me to World;
	choice at World {
		goodMorning(Compliments) from World to Me;
	} or {
		goodAfternoon(Salutations) from World to Me;
	}
}
----

A very simply example, but this illustrates the basic syntax for a hello world interaction, where a party performing the role Me sends a message of type Greetings to another party performing the role 'World', who subsequently makes a decision which determines which path of the choice will be followed, resulting in a GoodMorning or GoodAfternoon message being exchanged.


=== Working on Scribble source

If you are interested in building Scribble from source, then check out
link:/docs/dev/developer-guide.html[Development resources]





= Getting Started
Gary Brown
2015-04-21
:description: How to get started with Scribble
:jbake-type: page
:jbake-status: published
:icons: font

== Getting Started with Scribble.

----
module example;

type <xsd> "{http://www.acme.com/types}Greetings" from "http://www.acme.com/types/Greetings.xsd" as Greetings;
type <xsd> "{http://www.acme.com/types}Compliments" from "http://www.acme.com/types/Compliments.xsd" as Compliments;
type <xsd> "{http://www.acme.com/types}Salutations" from "http://www.acme.com/types/Salutations.xsd" as Salutations;

global protocol HelloWorld(role Me, role World) {
	hello(Greetings) from Me to World;
	choice at World {
		goodMorning(Compliments) from World to Me;
	} or {
		goodAfternoon(Salutations) from World to Me;
	}
}
----

A very simply example, but this illustrates the basic syntax for a hello world interaction, where a party performing the role Me sends a message of type Greetings to another party performing the role 'World', who subsequently makes a decision which determines which path of the choice will be followed, resulting in a _goodMorning_ or _goodAfternoon_ message being exchanged.


=== Working on Scribble source

If you are interested in building Scribble from source, then check out
link:/docs/dev/developer-guide.html[Development resources]





Add message types to example
Add message types to example
