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.

You inherit from Process and provide a unique string identifier for your process.<br />

Custom Processes<br />

using System;<br />

using Slb.<strong>Ocean</strong>.Core;<br />

using Slb.<strong>Ocean</strong>.Petrel.Workflow;<br />

public class MyAddCoreImage : Process<br />

{<br />

public MyAddCoreImage() : base("MyAddCoreImageId")<br />

{ }<br />

}<br />

Each process must have a name in order to identify it. This name string would be used if<br />

you wanted to place another process before this one in the same group. Details are<br />

discussed in Step 7.<br />

public void Integrate ()<br />

{<br />

MyAddCoreImage my2ndProcess = new my2ndProcess();<br />

PetrelSystem.ProcessDiagram.Add(my2ndProcess,<br />

...,<br />

MyAddCoreImage.Name);<br />

}<br />

Step 2 - Define Presentation: Icon and Name (optional)<br />

The process has a name and also an icon that are shown in the Process diagram. By<br />

default, <strong>Ocean</strong> uses the class name and a default icon.<br />

default icon<br />

Fig. 6-52 Default Workstep Presentation<br />

You can optionally control the presentation of your workstep to show a different icon and<br />

name. You implement IPresentation on your process to supply a bitmap for the icon and a<br />

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

Workflow 6-327

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

Saved successfully!

Ooh no, something went wrong!