Search in sources :

Example 1 with CoordinationContext

use of org.wso2.carbon.bpel.b4p.coordination.context.CoordinationContext in project carbon-business-process by wso2.

the class SOAPHelper method addCoordinationContext.

/**
 * Adding ws-Coordination context to soap request.
 *
 * @param msgCtx              MessageContext
 * @param messageID           UUID as a WS-Coordination identifier
 * @param registrationService URL of the ws-coordination registration service.
 */
public void addCoordinationContext(MessageContext msgCtx, String messageID, String registrationService) {
    SOAPHeader header = msgCtx.getEnvelope().getHeader();
    EndpointReference epr = new EndpointReference();
    epr.setAddress(registrationService);
    CoordinationContext context = new HumanTaskCoordinationContextImpl(messageID, epr);
    header.addChild(context.toOM());
}
Also used : HumanTaskCoordinationContextImpl(org.wso2.carbon.bpel.b4p.coordination.context.impl.HumanTaskCoordinationContextImpl) SOAPHeader(org.apache.axiom.soap.SOAPHeader) EndpointReference(org.apache.axis2.addressing.EndpointReference) CoordinationContext(org.wso2.carbon.bpel.b4p.coordination.context.CoordinationContext)

Aggregations

SOAPHeader (org.apache.axiom.soap.SOAPHeader)1 EndpointReference (org.apache.axis2.addressing.EndpointReference)1 CoordinationContext (org.wso2.carbon.bpel.b4p.coordination.context.CoordinationContext)1 HumanTaskCoordinationContextImpl (org.wso2.carbon.bpel.b4p.coordination.context.impl.HumanTaskCoordinationContextImpl)1