public final class MessageHelper
extends java.lang.Object
| Constructor and Description |
|---|
MessageHelper(java.util.Properties properties)
create instance.
|
| Modifier and Type | Method and Description |
|---|---|
org.w3c.dom.Element |
createMessage(Blackboard blackboard,
java.lang.String[] recordIds,
java.lang.String requestId)
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[] |
parseMessage(Blackboard blackboard,
org.w3c.dom.Element message,
org.w3c.dom.Node indexVariable)
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.
|
public MessageHelper(java.util.Properties properties)
properties - configuration propertiespublic java.lang.String parseRequestId(org.w3c.dom.Element message)
message - variable valuepublic 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 java.lang.String[] parseMessage(Blackboard blackboard, org.w3c.dom.Element message, org.w3c.dom.Node indexVariable) throws ProcessingException
blackboard - to sync workflow objects to.message - DOM message from BPEL engine containing workflow objects.ProcessingExceptionpublic org.w3c.dom.Element createMessage(Blackboard blackboard, java.lang.String[] recordIds, java.lang.String requestId) throws ProcessingException
<message><records> elements.blackboard - blackboard to read records from.recordIds - IDs of workflow objects in messagerequestId - internal requset id.ProcessingException - error creating workflow record.