Workflow structural elements
A workflow (or, more technically, a workflow
XML script) contains a number of elements that perform a structural function
in the workflow. For example, the <Start>
element designates which workflow step actually initiates the workflow.
The workflow elements include the following:
Element |
More information |
|---|---|
|
|
|
|
|
<Context> workflow element
Every workflow begins with a <Context> block. You use
it to conveniently define symbols that apply to the workflow. You can
use these symbols over and over in that workflow. For example, suppose
that you extend the Workflow
entity and add User as
a foreign key. Then, you can define the symbol user for use in the workflow script
with the value Workflow.User.
Within the workflow, you
have access to additional symbols, basically whatever the workflow instance
knows about. For example, you can define a symbol such that inserting
Cancellation into the
text workflow actually inserts Workflow.PolicyPeriod.Cancellation.
Defining Symbols
You must specify in the context any foreign
key or parameter that the workflow subtype definition references. To
access the <Context>
element, select it in the outline view. You add new symbols in the property
area at the bottom of the screen.
Field |
Description |
|---|---|
Name |
The name to use in the workflow process for this entity. |
Type |
The Guidewire entity type. |
Value |
The instance of the entity being referenced. |
<Start> workflow element
The <Start>
structural block defines the step on which the workflow starts. To set
the first step, select <Start>
in the outline view (center pane). In the properties pane at the bottom
of the screen, choose the starting step from the drop-down list of steps.
Studio displays the downward point of a green arrow on the step that
you chose.
This element can optionally contain Gosu code to set up the workflow or its business data.
<Finish> workflow element
The <Finish>
structural block is an optional block that contains Gosu code to perform
any last cleanup after the workflow reaches an Outcome Workflow Step.
