bexee.model.xmltobpel
Class BPELElementFactory

java.lang.Object
  extended bybexee.model.xmltobpel.BPELElementFactory

public class BPELElementFactory
extends java.lang.Object

This is a factory for the creation of BPEL process elements. The

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

Constructor Summary
BPELElementFactory()
          Create a BPELElementFactory object and initialize it.
 
Method Summary
 Assign createAssign(StandardAttributes standardAttributes)
          Describe createAssign method here.
 BpelCase createBpelCase(java.lang.String condition)
          Create a new BpelCase for the use within a Switch activity.
 java.lang.Object createCorrelation(java.lang.String set, java.lang.String initiate, java.lang.String pattern)
          Create a Correlation with all parameters.
 CorrelationPattern createCorrelationPattern(java.lang.String patternString)
          Create a CorrelationPattern with a patternString.
 From createFrom(java.lang.String variable, java.lang.String part, java.lang.String property, java.lang.String partnerLink, java.lang.String endpointReference, java.lang.String expression, java.lang.String opaque)
          Create a From with all possible attributes.
 java.lang.Object createInvoke(StandardAttributes standardAttributes, java.lang.String partnerLinkName, java.lang.String portTypeString, java.lang.String operation, java.lang.String inVariableName, java.lang.String outVariableName)
          Create an Invoke Activity with all possible attributes.
 PartnerLink createPartnerLink(java.lang.String partnerLinkName, java.lang.String partnerLinkType, java.lang.String myRole, java.lang.String partnerRole)
          Create a PartnerLink with all possible attributes.
 Process createProcess(java.lang.String name, java.lang.String targetNamespace, java.lang.String queryLanguage, java.lang.String expressionLanguage, java.lang.String suppressJoinFailure, java.lang.String enableInstanceCompensation, java.lang.String abstractProcess, java.lang.String xmlns, java.util.Map nameSpaces)
          Create a Process instance with all possible attributes.
 Receive createReceive(StandardAttributes standardAttributes, java.lang.String partnerLinkName, java.lang.String portTypeString, java.lang.String operation, java.lang.String variableName, java.lang.String createInstance)
          Create a Receive Activity with all possible attributes.
 Reply createReply(StandardAttributes attributes, java.lang.String partnerLink, java.lang.String portType, java.lang.String operation, java.lang.String variable, java.lang.String faultName)
          Describe createReply method here.
 Sequence createSequence(StandardAttributes standardAttributes)
          Create a new Sequence BPEL activity.
 java.lang.Object createSwitch(StandardAttributes standardAttributes)
          Describe createSwitch method here.
 To createTo(java.lang.String variable, java.lang.String part, java.lang.String property, java.lang.String partnerLink)
          Create a To with all possible attributes.
 Variable createVariable(java.lang.String name, java.lang.String messageType, java.lang.String type, java.lang.String element)
          Create a Variable with all possible attributes.
 Variables createVariables()
          Describe createVariables method here.
static BPELElementFactory getInstance(BPELProcess process)
          Create a new factory instance or if one already exists for this BPELProcessm, retrieve the existing one.
 PartnerLink retrievePartnerLink(java.lang.String partnerLinkName)
          Retrieve an already created PartnerLink for an Activity using partnerLinks.
 Variable retrieveVariable(java.lang.String variableName)
          Retrieve an already created Variable for an Activity using variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BPELElementFactory

public BPELElementFactory()
Create a BPELElementFactory object and initialize it.

Method Detail

getInstance

public static BPELElementFactory getInstance(BPELProcess process)
Create a new factory instance or if one already exists for this BPELProcessm, retrieve the existing one.

Parameters:
process -
Returns:

createProcess

public Process createProcess(java.lang.String name,
                             java.lang.String targetNamespace,
                             java.lang.String queryLanguage,
                             java.lang.String expressionLanguage,
                             java.lang.String suppressJoinFailure,
                             java.lang.String enableInstanceCompensation,
                             java.lang.String abstractProcess,
                             java.lang.String xmlns,
                             java.util.Map nameSpaces)
Create a Process instance with all possible attributes. Default values will be set when an attribute is empty or null.

Parameters:
name -
targetNamespace -
queryLanguage -
expressionLanguage -
suppressJoinFailure -
enableInstanceCompensation -
abstractProcess -
xmlns -
nameSpaces -
Returns:

createPartnerLink

public PartnerLink createPartnerLink(java.lang.String partnerLinkName,
                                     java.lang.String partnerLinkType,
                                     java.lang.String myRole,
                                     java.lang.String partnerRole)
Create a PartnerLink with all possible attributes. Register the created PartnerLink for retrieval by an Activity using PartnerLinks.

Parameters:
partnerLinkName -
partnerLinkType -
myRole -
partnerRole -
Returns:

createVariables

public Variables createVariables()
Describe createVariables method here.

Returns:

createVariable

public Variable createVariable(java.lang.String name,
                               java.lang.String messageType,
                               java.lang.String type,
                               java.lang.String element)
Create a Variable with all possible attributes. Register the created Variable for retrieval by an invoke or receive element.

Parameters:
name -
messageType -
type -
element -
Returns:
a Variable value

createCorrelation

public java.lang.Object createCorrelation(java.lang.String set,
                                          java.lang.String initiate,
                                          java.lang.String pattern)
Create a Correlation with all parameters. If the pattern parameter is null or empty, no CorrelationPattern object will be set.

Parameters:
set -
initiate -
pattern -
Returns:

createCorrelationPattern

public CorrelationPattern createCorrelationPattern(java.lang.String patternString)
Create a CorrelationPattern with a patternString.

Parameters:
patternString - a String value
Returns:
a CorrelationPattern object

createAssign

public Assign createAssign(StandardAttributes standardAttributes)
Describe createAssign method here.

Parameters:
standardAttributes -
Returns:
assign BPEL activity

createSequence

public Sequence createSequence(StandardAttributes standardAttributes)
Create a new Sequence BPEL activity.

Parameters:
standardAttributes - a StandardAttributes value
Returns:
Sequence activity

createReceive

public Receive createReceive(StandardAttributes standardAttributes,
                             java.lang.String partnerLinkName,
                             java.lang.String portTypeString,
                             java.lang.String operation,
                             java.lang.String variableName,
                             java.lang.String createInstance)
Create a Receive Activity with all possible attributes. A Receive created this way will be linked with an already defined existing Variables.

Parameters:
standardAttributes - a StandardAttributes value
partnerLinkName - a String value
portTypeString - a String value
operation -
variableName - a String value
createInstance -
Returns:
Receive activity

createInvoke

public java.lang.Object createInvoke(StandardAttributes standardAttributes,
                                     java.lang.String partnerLinkName,
                                     java.lang.String portTypeString,
                                     java.lang.String operation,
                                     java.lang.String inVariableName,
                                     java.lang.String outVariableName)
Create an Invoke Activity with all possible attributes. An Invoke created this way will be linked with already defined and existing Variables and PartnerLinks.

Parameters:
standardAttributes - a StandardAttributes value
partnerLinkName - a String value
portTypeString - a String value
operation -
inVariableName - a String value
outVariableName - a String value
Returns:

createReply

public Reply createReply(StandardAttributes attributes,
                         java.lang.String partnerLink,
                         java.lang.String portType,
                         java.lang.String operation,
                         java.lang.String variable,
                         java.lang.String faultName)
Describe createReply method here.

Parameters:
attributes -
partnerLink -
portType -
operation -
variable -
faultName -
Returns:

createSwitch

public java.lang.Object createSwitch(StandardAttributes standardAttributes)
Describe createSwitch method here.

Parameters:
standardAttributes -
Returns:

createFrom

public From createFrom(java.lang.String variable,
                       java.lang.String part,
                       java.lang.String property,
                       java.lang.String partnerLink,
                       java.lang.String endpointReference,
                       java.lang.String expression,
                       java.lang.String opaque)
Create a From with all possible attributes. Variables and PartnerLinks will not be created but retrieved from the enclosing process instead.

Parameters:
variable -
part -
property -
partnerLink -
endpointReference -
expression -
opaque -
Returns:

createTo

public To createTo(java.lang.String variable,
                   java.lang.String part,
                   java.lang.String property,
                   java.lang.String partnerLink)
Create a To with all possible attributes. Variables and PartnerLinks will not be created but retrieved from the enclosing process instead.

Parameters:
variable -
part -
property -
partnerLink -
Returns:

createBpelCase

public BpelCase createBpelCase(java.lang.String condition)
Create a new BpelCase for the use within a Switch activity. Create this BpelCase with a boolean condition used for selecting the BpelCase among all cases within a Switch.

Parameters:
condition -
Returns:

retrievePartnerLink

public PartnerLink retrievePartnerLink(java.lang.String partnerLinkName)
Retrieve an already created PartnerLink for an Activity using partnerLinks. If the partnerLinkName is null, empty or a PartnerLink with this name has not been created, this method will return a null value.

Parameters:
partnerLinkName - the name of the PartnerLink to be retrieved.
Returns:
a PartnerLink or null.

retrieveVariable

public Variable retrieveVariable(java.lang.String variableName)
Retrieve an already created Variable for an Activity using variables. If the variableName parameter is null, empty or the Variable has not been created, this method will return null value.

Parameters:
variableName - the name of the Variable to be retrieved.
Returns:
a Variable or null if the variableName is null, empty or a Variable with this name has not yet been created.


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