02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Custom Worksteps<br />

Your workstep is not the only client of the argument package, <strong>Ocean</strong> uses it to construct<br />

the line UI and default dialog UI.<br />

Fig. 6-27 Line UI for Workstep Example<br />

Fig. 6-28 Default Dialog UI for Workstep Example<br />

Notice that all four arguments are shown as inputs; that is not correct, the workstep has<br />

two inputs and two outputs. Also, notice that the argument names are exactly the<br />

property names from our argument package class.<br />

We can give more information to <strong>Ocean</strong> to help it build a better UI for us. For each<br />

argument we can give its:<br />

• Role (input and/or output)<br />

• Initial value<br />

• Description<br />

Argument Roles<br />

We need to tell the system what roles our arguments have: whether they are input<br />

arguments, output arguments, or both. This is accomplished via the accessibility of the<br />

property get and set.<br />

For an input argument, the system will need to give us the argument value from the UI.<br />

The set is public to allow the system to load the argument value from the UI into our<br />

argument package. The get for an input argument does not need to be public because<br />

the system does not need to use it, so we make it internal by convention.<br />

<strong>Schlumberger</strong> Private<br />

Workflow 6-287

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!