|
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.MessageHelper
public final class MessageHelper
Utility class to create and parse the DOM XML messages which we use to talk to the ODE engine, and sync workflow objects to the blackboard.
| Constructor Summary | |
|---|---|
MessageHelper(java.util.Properties properties)
create instance. |
|
| Method Summary | |
|---|---|
void |
addRequestId(org.w3c.dom.Element message,
java.lang.String requestId,
javax.xml.namespace.QName varType)
add request id part as first child element of message. |
org.w3c.dom.Element |
createMessage(Blackboard blackboard,
java.lang.String[] recordIds)
create workflow objects for specified IDs, create DOM representations of this record list and embed it as BPEL message. |
java.lang.String[] |
parseMessage(Blackboard blackboard,
org.w3c.dom.Element message)
sync workflow objects from DOM message to blackboard and return IDs of workflow objects. |
java.lang.String |
parseRequestId(org.w3c.dom.Element message)
read request Id from message variable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MessageHelper(java.util.Properties properties)
properties - configuration properties| Method Detail |
|---|
public java.lang.String parseRequestId(org.w3c.dom.Element message)
message - variable value
public java.lang.String[] parseMessage(Blackboard blackboard,
org.w3c.dom.Element message)
blackboard - to sync workflow objects to.message - DOM message from BPEL engine containing workflow objects.
public org.w3c.dom.Element createMessage(Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
<message><records> elements.
blackboard - blackboard to read records from.recordIds - IDs of workflow objects in message
ProcessingException - error creating workflow record.
public void addRequestId(org.w3c.dom.Element message,
java.lang.String requestId,
javax.xml.namespace.QName varType)
message - a message variablerequestId - request id.varType - type of variable. currently necessary to decide where to put the Id.
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||