bexee.model.process.impl
Class ProcessImpl

java.lang.Object
  extended bybexee.model.process.impl.ProcessImpl
All Implemented Interfaces:
AttributeNames, BPELElement, Process

public class ProcessImpl
extends java.lang.Object
implements Process

A default implementation of a Process.

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

Field Summary
 
Fields inherited from interface bexee.model.process.Process
DEFAULT_ABSTRACT_PROCESS, DEFAULT_ENABLE_INSTANCE_COMPENSATION, DEFAULT_EXPRESSION_LANGUAGE, DEFAULT_QUERY_LANGUAGE, DEFAULT_SUPPRESS_JOIN_FAILURE
 
Fields inherited from interface bexee.model.AttributeNames
ABSTRACT_PROCESS, CONDITION, CREATE_INSTANCE, ELEMENT, ENABLE_INSTANCE_COMPESATION, ENDPOINT_REFERENCE, EXPRESSION, EXPRESSION_LANGUAGE, FAULT_NAME, INITIATE, INPUT_VARIABLE, JOIN_CONDITION, MESSAGE_TYPE, MY_ROLE, NAME, OPAQUE, OPERATION, OUTPUT_VARIABLE, PART, PARTNER_LINK, PARTNER_LINK_TYPE, PARTNER_ROLE, PATTERN, PORT_TYPE, PROPERTY, QUERY_LANGUAGE, SET, SUPPRESS_JOIN_FAILURE, TARGET_NAMESPACE, TYPE, VARIABLE, XMLNS
 
Constructor Summary
ProcessImpl()
           
ProcessImpl(java.lang.String name, java.lang.String targetNamespace, java.lang.String queryLanguage, java.lang.String expressionLanguage, java.lang.String suppressJoinFailure, java.lang.String enableInstanceCompensation)
           
 
Method Summary
 void accept(BPELElementVisitor elementVisitor)
          Accept a BPELElementVisitor which will visit this BPEL element.
 void accept(ProcessController controller, ProcessInstance instance)
          Accept a ProcessController and a ProcessInstance.
 void activity(Activity activity)
           
 Activity getActivity()
          Get the root activity of this process.
 CompensationHandler getCompensationHandler()
          Get the CompensationHandler of this process.
 CorrelationSets getCorrelationSets()
          Get the CorrelationSets of this process.
 EventHandlers getEventHandlers()
          Get the EventHandlers of this process.
 java.lang.String getExpressionLanguage()
          Get the expressionLanguage of this process.
 FaultHandlers getFaultHandlers()
          Get the FaultHandlers of this process.
 java.lang.String getName()
          Get the name of this process.
 PartnerLinks getPartnerLinks()
          Get the PartnerLinks of this process.
 Partners getPartners()
          Get the Partners of this process.
 java.lang.String getQueryLanguage()
          Get the queryLanguage of this process.
 java.lang.String getTargetNamespace()
          Get the targetNamespace of this process.
 Variables getVariables()
          Get the Variables of this process.
 boolean isAbstractProcess()
          Is this an abstract process.
 boolean isInstanceCompensable()
          Get the EnableInstanceCompensation property of this process.
 boolean isSuppressJoinFailure()
          Are join failures suppressed in this process.
 void setAbstractProcess(boolean isAbstractProcess)
          Set a property indicating whether this process is abstract.
 void setActivity(Activity activity)
          Set the root activity of this process.
 void setCompensationHandler(CompensationHandler compensationHandler)
          Set the CompensationHandler of this process.
 void setCorrelationSets(CorrelationSets correlationSets)
          Set the CorrelationSets of this process.
 void setEnableInstanceCompensation(boolean isInstanceCompensable)
          Set the EnableInstanceCompensation property of this process.
 void setEventHandlers(EventHandlers eventHandlers)
          Set the EventHandlers of this process.
 void setExpressionLanguage(java.lang.String expressionLanguage)
          Set the expressionLanguage of this process.
 void setFaultHandlers(FaultHandlers faultHandlers)
          Set the FaultHandlers of this process.
 void setName(java.lang.String name)
          Set the name of this process.
 void setPartnerLinks(PartnerLinks partnerLinks)
          Set the PartnerLinks of this process.
 void setPartners(Partners partners)
          Set the Partners of this process.
 void setQueryLanguage(java.lang.String queryLanguage)
          Set the queryLanguage of this process.
 void setSuppressJoinFailure(boolean suppressJoinFailure)
          Set the suppressJoinFailure property of this process.
 void setTargetNamespace(java.lang.String targetNamespace)
          Set the targetNamespace of this process.
 void setVariables(Variables variables)
          Set the Variables of this process.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProcessImpl

public ProcessImpl()

ProcessImpl

public ProcessImpl(java.lang.String name,
                   java.lang.String targetNamespace,
                   java.lang.String queryLanguage,
                   java.lang.String expressionLanguage,
                   java.lang.String suppressJoinFailure,
                   java.lang.String enableInstanceCompensation)
Parameters:
enableInstanceCompensation -
Method Detail

setName

public void setName(java.lang.String name)
Description copied from interface: Process
Set the name of this process.

Specified by:
setName in interface Process
Parameters:
name -

getName

public java.lang.String getName()
Description copied from interface: Process
Get the name of this process.

Specified by:
getName in interface Process
Returns:

setTargetNamespace

public void setTargetNamespace(java.lang.String targetNamespace)
Description copied from interface: Process
Set the targetNamespace of this process.

Specified by:
setTargetNamespace in interface Process
Parameters:
targetNamespace -

getTargetNamespace

public java.lang.String getTargetNamespace()
Description copied from interface: Process
Get the targetNamespace of this process.

Specified by:
getTargetNamespace in interface Process
Returns:

setQueryLanguage

public void setQueryLanguage(java.lang.String queryLanguage)
Description copied from interface: Process
Set the queryLanguage of this process.

Specified by:
setQueryLanguage in interface Process
Parameters:
queryLanguage -

getQueryLanguage

public java.lang.String getQueryLanguage()
Description copied from interface: Process
Get the queryLanguage of this process.

Specified by:
getQueryLanguage in interface Process
Returns:

setExpressionLanguage

public void setExpressionLanguage(java.lang.String expressionLanguage)
Description copied from interface: Process
Set the expressionLanguage of this process.

Specified by:
setExpressionLanguage in interface Process
Parameters:
expressionLanguage -

getExpressionLanguage

public java.lang.String getExpressionLanguage()
Description copied from interface: Process
Get the expressionLanguage of this process.

Specified by:
getExpressionLanguage in interface Process
Returns:

setSuppressJoinFailure

public void setSuppressJoinFailure(boolean suppressJoinFailure)
Description copied from interface: Process
Set the suppressJoinFailure property of this process.

Specified by:
setSuppressJoinFailure in interface Process
Parameters:
suppressJoinFailure -

isSuppressJoinFailure

public boolean isSuppressJoinFailure()
Description copied from interface: Process
Are join failures suppressed in this process.

Specified by:
isSuppressJoinFailure in interface Process
Returns:

setEnableInstanceCompensation

public void setEnableInstanceCompensation(boolean isInstanceCompensable)
Description copied from interface: Process
Set the EnableInstanceCompensation property of this process.

Specified by:
setEnableInstanceCompensation in interface Process
Parameters:
isInstanceCompensable -

isInstanceCompensable

public boolean isInstanceCompensable()
Description copied from interface: Process
Get the EnableInstanceCompensation property of this process.

Specified by:
isInstanceCompensable in interface Process
Returns:

setAbstractProcess

public void setAbstractProcess(boolean isAbstractProcess)
Description copied from interface: Process
Set a property indicating whether this process is abstract.

Specified by:
setAbstractProcess in interface Process
Parameters:
isAbstractProcess -

isAbstractProcess

public boolean isAbstractProcess()
Description copied from interface: Process
Is this an abstract process.

Specified by:
isAbstractProcess in interface Process
Returns:

setPartnerLinks

public void setPartnerLinks(PartnerLinks partnerLinks)
Description copied from interface: Process
Set the PartnerLinks of this process.

Specified by:
setPartnerLinks in interface Process
Parameters:
partnerLinks -

getPartnerLinks

public PartnerLinks getPartnerLinks()
Description copied from interface: Process
Get the PartnerLinks of this process.

Specified by:
getPartnerLinks in interface Process
Returns:

setPartners

public void setPartners(Partners partners)
Description copied from interface: Process
Set the Partners of this process.

Specified by:
setPartners in interface Process
Parameters:
partners -

getPartners

public Partners getPartners()
Description copied from interface: Process
Get the Partners of this process.

Specified by:
getPartners in interface Process
Returns:

setVariables

public void setVariables(Variables variables)
Description copied from interface: Process
Set the Variables of this process.

Specified by:
setVariables in interface Process
Parameters:
variables -

getVariables

public Variables getVariables()
Description copied from interface: Process
Get the Variables of this process.

Specified by:
getVariables in interface Process
Returns:

setCorrelationSets

public void setCorrelationSets(CorrelationSets correlationSets)
Description copied from interface: Process
Set the CorrelationSets of this process.

Specified by:
setCorrelationSets in interface Process
Parameters:
correlationSets -

getCorrelationSets

public CorrelationSets getCorrelationSets()
Description copied from interface: Process
Get the CorrelationSets of this process.

Specified by:
getCorrelationSets in interface Process
Returns:

setFaultHandlers

public void setFaultHandlers(FaultHandlers faultHandlers)
Description copied from interface: Process
Set the FaultHandlers of this process.

Specified by:
setFaultHandlers in interface Process
Parameters:
faultHandlers -

getFaultHandlers

public FaultHandlers getFaultHandlers()
Description copied from interface: Process
Get the FaultHandlers of this process.

Specified by:
getFaultHandlers in interface Process
Returns:

setCompensationHandler

public void setCompensationHandler(CompensationHandler compensationHandler)
Description copied from interface: Process
Set the CompensationHandler of this process.

Specified by:
setCompensationHandler in interface Process
Parameters:
compensationHandler -

getCompensationHandler

public CompensationHandler getCompensationHandler()
Description copied from interface: Process
Get the CompensationHandler of this process.

Specified by:
getCompensationHandler in interface Process
Returns:

setEventHandlers

public void setEventHandlers(EventHandlers eventHandlers)
Description copied from interface: Process
Set the EventHandlers of this process.

Specified by:
setEventHandlers in interface Process
Parameters:
eventHandlers -

getEventHandlers

public EventHandlers getEventHandlers()
Description copied from interface: Process
Get the EventHandlers of this process.

Specified by:
getEventHandlers in interface Process
Returns:

activity

public void activity(Activity activity)

setActivity

public void setActivity(Activity activity)
Description copied from interface: Process
Set the root activity of this process.

Specified by:
setActivity in interface Process
Parameters:
activity -

getActivity

public Activity getActivity()
Description copied from interface: Process
Get the root activity of this process.

Specified by:
getActivity in interface Process
Returns:

accept

public void accept(ProcessController controller,
                   ProcessInstance instance)
            throws java.lang.Exception
Description copied from interface: BPELElement
Accept a ProcessController and a ProcessInstance. This method enforces the use of the double-dispach for BPEL elements and activites. Like that it's possible to avoid tedious, error-prone and long instanceof checking of elements before processing.

Specified by:
accept in interface BPELElement
Parameters:
controller -
instance -
Throws:
java.lang.Exception

accept

public void accept(BPELElementVisitor elementVisitor)
Description copied from interface: BPELElement
Accept a BPELElementVisitor which will visit this BPEL element. Enforces double-dispatch.

Specified by:
accept in interface BPELElement
Parameters:
elementVisitor -


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