bexee.core
Class ProcessControllerImpl

java.lang.Object
  extended bybexee.core.ProcessControllerImpl
All Implemented Interfaces:
ProcessController

public class ProcessControllerImpl
extends java.lang.Object
implements ProcessController

The default imlementation of the ProcessController.

Version:
$Revision: 1.1 $, $Date: 2004/12/15 14:18:10 $
Author:
Patric Fornasier, Pawel Kowalski

Constructor Summary
ProcessControllerImpl()
           
 
Method Summary
 void process(Activity activity, ProcessInstance instance)
          Process method for all unimplemented activities.
 void process(Assign assign, ProcessInstance instance)
          This is the process method for an Activity and is kept here as long as there exist unimplemented activities.
 void process(Compensate impl, ProcessInstance instance)
          Execute a Compensate BPEL element.
 void process(Copy copy, ProcessInstance instance)
          Execute a Copy BPEL element.
 void process(CorrelationPattern correlationPattern, ProcessInstance instance)
          Execute a CorrelationPattern BPEL element.
 void process(Correlation correlation, ProcessInstance instance)
          Execute a Correlation BPEL element.
 void process(Empty empty, ProcessInstance instance)
          Execute an Empty activity.
 void process(Flow flow, ProcessInstance instance)
          This is the implementation of the Flow activity which is used for parallel execution.
 void process(Invoke invoke, ProcessInstance instance)
          Execute an Invoke BPEL activity.
 void process(Link link, ProcessInstance instance)
          Execute a Link BPEL element.
 void process(PartnerLink partnerLink, ProcessInstance instance)
          Execute a PartnerLink BPEL element.
 void process(PartnerLinks partnerLinks, ProcessInstance instance)
          Execute PartnerLinks BPEL element.
 void process(Process process, ProcessInstance instance)
          Execute the root Process element of the BPEL process.
 void process(Receive receive, ProcessInstance instance)
          Execute a Receive activity.
 void process(Reply reply, ProcessInstance instance)
          Execute a Reply activity.
 void process(Sequence sequence, ProcessInstance instance)
          Execute a Sequence structured activity.
 void process(Switch bpelSwitch, ProcessInstance instance)
          A default implementation of the process(Switch, ProcessInstance) method.
 void process(Variable variable, ProcessInstance instance)
          Execute a Variable BPEL element.
 void process(Variables variables, ProcessInstance instance)
          Execute a Variables BPEL element.
 void processMessage(ProcessInstance instance, BexeeMessage message)
          Execute the process using the given ProcessInstance and the BexeeMessage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessControllerImpl

public ProcessControllerImpl()
Method Detail

processMessage

public void processMessage(ProcessInstance instance,
                           BexeeMessage message)
Description copied from interface: ProcessController
Execute the process using the given ProcessInstance and the BexeeMessage.

Specified by:
processMessage in interface ProcessController
Parameters:
instance - the ProcessInstance
message - the BexeeMessage

process

public void process(Process process,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
Execute the root Process element of the BPEL process.

Specified by:
process in interface ProcessController
Parameters:
process - root BPEL element
instance - the process instance
Throws:
java.lang.Exception

process

public void process(Sequence sequence,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
Execute a Sequence structured activity.

Specified by:
process in interface ProcessController
Parameters:
sequence -
instance -
Throws:
java.lang.Exception

process

public void process(Flow flow,
                    ProcessInstance instance)
             throws java.lang.Exception
This is the implementation of the Flow activity which is used for parallel execution. In this primitive implementation we don't use any thread pooling mechanisms. In a more sophisticated version of the ProcessController, we might make use of the http://jakarta.apache.org/commons/pool/ library for thread pooling.

Specified by:
process in interface ProcessController
Parameters:
flow -
instance -
Throws:
java.lang.Exception

process

public void process(Switch bpelSwitch,
                    ProcessInstance instance)
             throws java.lang.Exception
A default implementation of the process(Switch, ProcessInstance) method.

Specified by:
process in interface ProcessController
Parameters:
bpelSwitch -
instance -
Throws:
java.lang.Exception

process

public void process(Receive receive,
                    ProcessInstance instance)
             throws AwaitMessageException
Description copied from interface: ProcessController
Execute a Receive activity.

Specified by:
process in interface ProcessController
Parameters:
receive -
instance -
Throws:
AwaitMessageException

process

public void process(Assign assign,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
This is the process method for an Activity and is kept here as long as there exist unimplemented activities.

Specified by:
process in interface ProcessController
Parameters:
assign -
instance -
Throws:
java.lang.Exception

process

public void process(Invoke invoke,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
Execute an Invoke BPEL activity.

Specified by:
process in interface ProcessController
Parameters:
invoke -
instance -
Throws:
java.lang.Exception

process

public void process(Reply reply,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
Execute a Reply activity.

Specified by:
process in interface ProcessController
Parameters:
reply -
instance -
Throws:
java.lang.Exception

process

public void process(Empty empty,
                    ProcessInstance instance)
Description copied from interface: ProcessController
Execute an Empty activity.

Specified by:
process in interface ProcessController
Parameters:
instance -

process

public void process(Activity activity,
                    ProcessInstance instance)
Process method for all unimplemented activities.

Specified by:
process in interface ProcessController
Parameters:
activity -
instance -

process

public void process(Variables variables,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
Execute a Variables BPEL element.

Specified by:
process in interface ProcessController
Parameters:
variables -
instance -
Throws:
java.lang.Exception

process

public void process(Variable variable,
                    ProcessInstance instance)
Description copied from interface: ProcessController
Execute a Variable BPEL element.

Specified by:
process in interface ProcessController
Parameters:
variable -
instance -

process

public void process(PartnerLinks partnerLinks,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
Execute PartnerLinks BPEL element.

Specified by:
process in interface ProcessController
Parameters:
partnerLinks -
instance -
Throws:
java.lang.Exception

process

public void process(PartnerLink partnerLink,
                    ProcessInstance instance)
Description copied from interface: ProcessController
Execute a PartnerLink BPEL element.

Specified by:
process in interface ProcessController
Parameters:
partnerLink -
instance -

process

public void process(Link link,
                    ProcessInstance instance)
Description copied from interface: ProcessController
Execute a Link BPEL element.

Specified by:
process in interface ProcessController
Parameters:
link -
instance -

process

public void process(Compensate impl,
                    ProcessInstance instance)
Description copied from interface: ProcessController
Execute a Compensate BPEL element.

Specified by:
process in interface ProcessController
Parameters:
impl -
instance -

process

public void process(Correlation correlation,
                    ProcessInstance instance)
Description copied from interface: ProcessController
Execute a Correlation BPEL element.

Specified by:
process in interface ProcessController
Parameters:
correlation -
instance -

process

public void process(CorrelationPattern correlationPattern,
                    ProcessInstance instance)
Description copied from interface: ProcessController
Execute a CorrelationPattern BPEL element.

Specified by:
process in interface ProcessController
Parameters:
correlationPattern -
instance -

process

public void process(Copy copy,
                    ProcessInstance instance)
             throws java.lang.Exception
Description copied from interface: ProcessController
Execute a Copy BPEL element.

Specified by:
process in interface ProcessController
Parameters:
copy -
instance -
Throws:
java.lang.Exception


Copyright © 2004 Berne University of Applied Sciences. All Rights Reserved.