02.05.2014 Views

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

CoreandServices.book - Ocean - Schlumberger

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Custom Worksteps<br />

How to Write a Workstep<br />

Now we will move on to writing the workstep that will use the argument package. There<br />

are eight steps to writing an <strong>Ocean</strong> workstep.<br />

1 Inherit from the workstep base class.<br />

2 Manage your argument package.<br />

3 Implement your processing method.<br />

4 Optionally define your presentation: icon and name.<br />

5 Optionally define your description for line and dialog UI’s.<br />

6 Optionally provide help for default dialog UI’s.<br />

7 Optionally create your custom user interface and register its factory.<br />

8 Add your workstep to Petrel.<br />

1. Workstep<br />

2. argument<br />

package<br />

3. processing<br />

algorithm<br />

4. presentation<br />

(optional)<br />

5. description<br />

(optional)<br />

6. default UI help<br />

(optional)<br />

7. custom UI<br />

(optional)<br />

8. add Petrel<br />

Fig. 6-36 Steps to Write a Workstep<br />

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

Workflow 6-301

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

Saved successfully!

Ooh no, something went wrong!