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 />

Initial values for domain objects should be set to the NullObject or null if the<br />

NullObject property does not exist for that domain object.<br />

Argument Description<br />

Recall that the argument names in the default UI were the same as the argument package<br />

property names. You may prefer to show the end user a more meaningful name in the<br />

default UI’s.<br />

You can supply a better argument name and a short description using a custom <strong>Ocean</strong><br />

attribute, DescriptionAttribute. It is defined as:<br />

public sealed class DescriptionAttribute : DescribedArgumentAttribute<br />

{<br />

public DescriptionAttribute(string name, string shortDescription);<br />

...<br />

}<br />

public abstract class DescribedArgumentAttribute : System.Attribute {}<br />

6-292 <strong>Ocean</strong> Application Development Framework 2008.1<br />

<strong>Schlumberger</strong> Private

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

Saved successfully!

Ooh no, something went wrong!