|
WebLogic Integration | |||||||||
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. |
void |
checkEventKey(java.lang.String contentType,
java.lang.String eventDescriptor,
java.lang.String keyExpr)
Ensure that a suitable event key exists. |
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. |
PluginObject |
getTemplateDefinitionPluginData(java.lang.String pluginName)
Return the plugin template definition data for the specified plugin. |
java.lang.String |
getTemplateID()
Return the ID of the workflow template. |
PluginObject |
getTemplatePluginData(java.lang.String pluginName)
Return the plugin template data for the specified plugin. |
void |
postStartWatch(java.lang.String contentType,
java.lang.String eventDescriptor,
java.lang.String keyValue,
java.lang.String condition)
Register an event processor watch record for the specified message. |
void |
postStartWatch(java.lang.String contentType,
java.lang.String eventDescriptor,
java.lang.String keyValue,
java.lang.String condition,
java.lang.String startOrg)
Deprecated. Plugin start nodes should call postStartWatch(String, String, String, String)
instead. |
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()
public java.lang.String getTemplateDefinitionID()
public PluginObject getTemplatePluginData(java.lang.String pluginName)
pluginName
- The reverse-DNS plugin name.public PluginObject getTemplateDefinitionPluginData(java.lang.String pluginName)
pluginName
- The reverse-DNS plugin name.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
.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)
postStartWatch(String, String, String, String)
instead.
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.PluginStart
node.removeStartWatch()
public void postStartWatch(java.lang.String contentType, java.lang.String eventDescriptor, java.lang.String keyValue, java.lang.String condition)
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
.PluginStart
or PluginStart2
node.removeStartWatch()
public void removeEventWatch(ExecutionContext context)
PluginEvent
node.
context
- The workflow execution context passed to the caller.PluginEvent
node.public void removeStartWatch()
PluginStart
or
or PluginStart2
node.
PluginStart
or PluginStart2
node.postStartWatch(java.lang.String, java.lang.String, java.lang.String, java.lang.String, java.lang.String)
public void checkEventKey(java.lang.String contentType, java.lang.String eventDescriptor, java.lang.String keyExpr) throws WorkflowException
EventInfo.getFieldInfo()
or
StartInfo.getFieldInfo()
to retrieve
the information it requires to check for the existence of a suitable
event key, and to
create or update one if necessary. If keyExpr
is non-
null
, the method creates a new event key if it does not
already exist, or updates an existing event key if its
keyExpr
does not match that supplied by the plug-in. If
keyExpr
is null
and no matching event key
exists, the method throws a WorkflowException
with the code
Messages#EVENT_KEY_MISSING
.
This method can only be called by a PluginStart
,
PluginStart2
, or PluginEvent
node. This is an expensive
call and plug-ins should take steps to minimize its use, typically by
keeping a static flag to ensure that it is only called once per event
key.
contentType
- The MIME content type.eventDescriptor
- The content type specific schema identifier.keyExpr
- The expression to be used to extract the key value from
an incoming message of the specified content type and event descriptor.
Can be null
.keyExpr
is non-null but
invalid.keyExpr
is
null
and no such event key already exists.
|
WebLogic Integration | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |