Download YAWL User Manual 3.0 version

Transcript
82
CHAPTER 4. THE EDITOR
Figure 4.32: Example of an invalid data type definition
Figure 4.33: The data type definition dialog toolbar
The example in Figure 4.31 creates a complex data type called “Geek” that has two separate sub-components,
“Name” and “Salary” of type “string” and “double” respectively. Types called ‘Book’ and ‘Booklist’ are created in the same way. As depicted in Figure 4.34, the new data type “Geek” is available to choose from the
list of available types when creating a task or net variable.
Net variables with a usage of “Local” can have initial values specified for them, as depicted in the same
figure. As with the data type definition dialog, validation errors will appear when the initial value text is
invalid for its data type schema.
The Data Type Definition Repository
As mentioned above, the Data Type Definition dialog provides three buttons on the dialog tool bar that
allow you to save complete or partial data type definitions to the repository and later retrieve them for
other specifications.
To add a data type definition to the repository, first select it in the dialog’s editor then click the ‘Add to
Repository’ button ( ) Add a label and meaningful description for the definition to the dialog that appears,
then click OK to save.