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.

All custom worksteps are added in the Processes tab in the <strong>Ocean</strong> Plugins folder:<br />

Custom Worksteps<br />

Fig. 6-46 Added Worksteps<br />

At this point your workstep is ready to be used in a workflow by the end user.<br />

Running a Workflow<br />

You can run a workflow in the current project programmatically. This lets you easily<br />

automate the execution of a workflow.<br />

Use the IWorkflowRunner service to run a workflow programmatically. You pass in the<br />

name of the workflow; the service executes it and returns an indication of success/failure.<br />

public interface IWorkflowRunner<br />

{<br />

bool RunWorkflow (string workflowName);<br />

bool RunWorkflow (string workflowName,<br />

string[ ] variableNames,<br />

string[ ] variableValues,<br />

bool[ ] isStringExpression);<br />

}<br />

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

Workflow 6-321

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

Saved successfully!

Ooh no, something went wrong!