nextgrid.api.pom
Interface ProcessController


public interface ProcessController

Provides control and monitoring operations for the enaction user.

Author:
Rodrigo Ruiz

Nested Class Summary
static class ProcessController.State
          Workflow state.
 
Method Summary
 void cancel()
          Cancels the process enaction.
 ProcessController.State getState()
          Gets the current state of the workflow execution.
 void join()
          Suspends the current thread until the workflow execution finishes.
 void pause()
          Pauses a workflow execution.
 void resume()
          Resumes a workflow execution.
 void run()
          Synchronous workflow execution.
 void start()
          Starts the process enaction.
 

Method Detail

pause

void pause()
           throws ProcessException,
                  java.lang.InterruptedException
Pauses a workflow execution.

Throws:
ProcessException - If an error occurs
java.lang.InterruptedException - If the thread execution is interrupted

resume

void resume()
            throws ProcessException
Resumes a workflow execution.

Throws:
ProcessException - If an error occurs

getState

ProcessController.State getState()
Gets the current state of the workflow execution.

Returns:
The workflow execution current state

start

void start()
           throws ProcessException
Starts the process enaction.

Throws:
ProcessException - If an error occurs

cancel

void cancel()
            throws ProcessException,
                   java.lang.InterruptedException
Cancels the process enaction.

Throws:
ProcessException - If an error occurs
java.lang.InterruptedException - If the thread execution is interrupted

join

void join()
          throws ProcessException,
                 java.lang.InterruptedException
Suspends the current thread until the workflow execution finishes.

Throws:
ProcessException - If an error occurs
java.lang.InterruptedException - If the thread execution is interrupted

run

void run()
         throws ProcessException,
                java.lang.InterruptedException
Synchronous workflow execution.

Throws:
ProcessException - If an error occurs
java.lang.InterruptedException - If the thread execution is interrupted


Copyright © 2006-2008 Grid Systems, S.A.. All Rights Reserved.