|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.bpel.ExtensionManager
public abstract class ExtensionManager
Utility class with methods needed in implementating ODE extension actitivities for SMILA.
| Constructor Summary | |
|---|---|
ExtensionManager()
|
|
| Method Summary | |
|---|---|
abstract void |
checkAvailability(ExtensionAdapter adapter,
ODEWorkflowProcessor processor)
check if element invoked by the adapter is already available. |
void |
copyAnnotations(Blackboard blackboard,
ProcessorMessage message,
Annotatable annotatable)
copy annotations from annotable object to each record on blackboard identified by the given Ids. |
protected CompilationMessage |
createErrorCompilationMessage(java.lang.String key,
java.lang.String message)
utility method for subclasses to use for creating error messages during activity registration. |
abstract ProcessorMessage |
doInvoke(ExtensionAdapter adapter,
ODEWorkflowProcessor processor,
Blackboard blackboard,
ProcessorMessage request)
actually invoke the adapter. |
abstract ExtensionAdapter |
doRegisterActivity(OProcess pipelineProcess,
OExtensionActivity activity,
org.w3c.dom.Element content,
java.lang.String key)
register extension actvity. |
java.lang.String |
getActivityKey(OActivity activity)
create unique name for given key. |
java.util.Collection<ExtensionAdapter> |
getAdapters()
|
java.lang.String |
getAttributeOfElement(org.w3c.dom.Element content,
java.lang.String localName,
java.lang.String attribute)
find element with given local name (proc: namespace) and return value of given attribute. return null, if not found. |
ExtensionAdapter |
getExtensionAdapter(java.lang.String key)
get extension adapter for key. |
abstract java.lang.String |
getExtensionName()
|
ODEWorkflowProcessor |
getProcessor(OActivity activity)
|
protected int |
getRecordCount(Id[] recordIds)
Counts the number of recordIds in a given Id[]. |
void |
invokeActivity(ExtensionContext context,
org.w3c.dom.Element element)
invoke extension activity from BPEL process. |
void |
parseAnnotations(org.w3c.dom.Element content,
AnnotatableImpl annotatable)
parse annotations from given element and attach them to annotatble object. |
void |
registerActivity(OExtensionActivity activity,
ExtensibleElement element)
create adapter for detected extension actitity. |
void |
registerPipeline(ODEWorkflowProcessor processor,
javax.xml.namespace.QName processName)
register owner of pipeline. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExtensionManager()
| Method Detail |
|---|
public void registerActivity(OExtensionActivity activity,
ExtensibleElement element)
org.apache.ode.bpel.compiler.api.CompilationException if an error occurs.
activity - the activity to registerelement - DOM element from BPEL describing the actvity
public abstract ExtensionAdapter doRegisterActivity(OProcess pipelineProcess,
OExtensionActivity activity,
org.w3c.dom.Element content,
java.lang.String key)
org.apache.ode.bpel.compiler.api.CompilationException if an
error occurs.
pipelineProcess - process that contains the activity.activity - the activity to registercontent - XML content of actvitykey - key of actvity
public void registerPipeline(ODEWorkflowProcessor processor,
javax.xml.namespace.QName processName)
processor - ODE processor that owns this pipeline.processName - pipeline to registerpublic abstract java.lang.String getExtensionName()
public void invokeActivity(ExtensionContext context,
org.w3c.dom.Element element)
context - BPEL extension context.element - DOM representation of extension element.
public abstract void checkAvailability(ExtensionAdapter adapter,
ODEWorkflowProcessor processor)
throws ProcessingException
adapter - adapter to checkprocessor - associated processor
ProcessingException - if elements represented by adapter cannot be invoked.
public abstract ProcessorMessage doInvoke(ExtensionAdapter adapter,
ODEWorkflowProcessor processor,
Blackboard blackboard,
ProcessorMessage request)
throws ProcessingException
adapter - adapter to invokeprocessor - associated processorblackboard - blackboard instance to work on.request - record Ids of request.
ProcessingException - error while processing.public java.lang.String getActivityKey(OActivity activity)
activity - a ODE activity
public java.util.Collection<ExtensionAdapter> getAdapters()
public ExtensionAdapter getExtensionAdapter(java.lang.String key)
throws ProcessingException
key - activity key
ProcessingException - no adapter found.
public ODEWorkflowProcessor getProcessor(OActivity activity)
throws ProcessingException
activity - an extension activity
ProcessingException - no processor found.
public java.lang.String getAttributeOfElement(org.w3c.dom.Element content,
java.lang.String localName,
java.lang.String attribute)
content - an element to search in.localName - local name of element to look for.attribute - attribute name.
public void parseAnnotations(org.w3c.dom.Element content,
AnnotatableImpl annotatable)
content - DOM objects to search for annotationsannotatable - object to attach annotations to.
public void copyAnnotations(Blackboard blackboard,
ProcessorMessage message,
Annotatable annotatable)
throws BlackboardAccessException
blackboard - blackboardmessage - target record Ids.annotatable - annotation source.
BlackboardAccessException - error copying annotations
protected CompilationMessage createErrorCompilationMessage(java.lang.String key,
java.lang.String message)
org.apache.ode.bpel.compiler.api.CompilationException which needs to be created with a
CompilationMessage. The causing exception can be added to the
org.apache.ode.bpel.compiler.api.CompilationException itself.
key - activity keymessage - message describing the error.
protected int getRecordCount(Id[] recordIds)
recordIds - the Id[]
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||