Getting Started

How to get started with Scribble

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 Development resources

© Scribble.org, 2009-2015 | Baked with JBake v2.3.2

Fork me on GitHub