|
WebLogic Process Integrator Version 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Provides run-time context and services to plugin event and start nodes.
The framework passes an instance of this interface to the
PluginEvent.activate(com.bea.wlpi.server.plugin.EventContext, com.bea.wlpi.server.common.ExecutionContext)
and PluginStart.setTrigger(com.bea.wlpi.server.plugin.EventContext, java.lang.String)
methods.
PluginEvent
,
PluginStart
,
EventInfo
,
StartInfo
Method Summary | |
void |
activateEvent(ExecutionContext context,
java.lang.String contentType,
java.lang.String eventDescriptor,
java.lang.String keyValue,
java.lang.String condition)
Perform default event activation. |
java.lang.String |
getNodeID()
Return the ID of the event or start node. |
java.lang.String |
getTemplateDefinitionID()
Return the ID of the workflow template definition. |
java.lang.String |
getTemplateID()
Return the ID of the workflow template. |
void |
postStartWatch(java.lang.String contentType,
java.lang.String eventDescriptor,
java.lang.String keyValue,
java.lang.String condition,
java.lang.String startOrg)
Register an event processor watch record for the specified message. |
void |
removeEventWatch(ExecutionContext context)
De-register the event processor watch record for the specified message. |
void |
removeStartWatch()
De-register the event processor watch record for the specified message. |
Method Detail |
public java.lang.String getTemplateID()
#getNodeID
public java.lang.String getTemplateDefinitionID()
#getNodeID
public java.lang.String getNodeID()
getTemplateID()
,
getTemplateDefinitionID()
public void activateEvent(ExecutionContext context, java.lang.String contentType, java.lang.String eventDescriptor, java.lang.String keyValue, java.lang.String condition) throws WorkflowException
true
,
the matching event is consumed and the event node triggered. If no such
message exists, the method posts an event watch record.context
- The workflow execution context passed to the caller.contentType
- The MIME content type of the event data.eventDescriptor
- Event data format descriptor, in a plugin-defined
format appropriate to the content type. Can be null
.keyValue
- The key value required to trigger this event. Can be
null
.condition
- A conditional expression to evaluate to against the
event data. The condition must evaluate to true
to trigger
the event. Can be null
.EJBException
- if the event watch could not be posted.UnsupportedOperationException
- if the method is called from other
than a PluginEvent
node.PluginEvent.activate(com.bea.wlpi.server.plugin.EventContext, com.bea.wlpi.server.common.ExecutionContext)
public void postStartWatch(java.lang.String contentType, java.lang.String eventDescriptor, java.lang.String keyValue, java.lang.String condition, java.lang.String startOrg)
contentType
- The MIME content type of the event data.eventDescriptor
- Event data format descriptor, in a plugin-defined
format appropriate to the content type. Can be null
.keyValue
- The key value required to trigger this event. Can be
null
.condition
- A conditional expression to evaluate to against the
event data. The condition must evaluate to true
to trigger
the event. Can be null
.startOrg
- An expression which, when evaluated, yields the ID of
the organization in which to instantiate the workflow.EJBException
- if the start watch could not be posted.UnsupportedOperationException
- if the method is called from other
than a PluginStart
node.removeStartWatch()
public void removeEventWatch(ExecutionContext context)
PluginEvent
node.context
- The workflow execution context passed to the caller.EJBException
- if the event watch could not be removed.UnsupportedOperationException
- if the method is called from other
than a PluginEvent
node.public void removeStartWatch()
PluginStart
node.EJBException
- if the start watch could not be removed.UnsupportedOperationException
- if the method is called from other
than a PluginStart
node.postStartWatch(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
|
WebLogic Process Integrator Version 2.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |