Examples of FaultResponderType


Examples of org.apache.airavata.workflow.tracking.types.FaultResponderType

        if (context == null)
            throw new RuntimeException("Context passed was NULL.");

        SendingFaultDocument activity = SendingFaultDocument.Factory.newInstance();
        FaultResponderType activityType = activity.addNewSendingFault();

        // set the receiver to the remote entity
        if (context.getRemoteEntity() != null) {
            activityType.addNewReceiver().set(context.getRemoteEntity().toBaseIDType());
        } else {
            logger.warn("Error in context that was passed. "
                    + "There was no remote entity defined (responseReceiver=NULL)");
        }

        // add header and body fields
        if (header != null || faultBody != null) {
            FaultMessageType result = activityType.addNewFault();
            if (header != null)
                result.addNewHeader().set(header);
            if (faultBody != null)
                result.addNewBody().set(faultBody);
        }
View Full Code Here

Examples of org.apache.airavata.workflow.tracking.types.FaultResponderType

        if (context == null)
            throw new RuntimeException("Context passed was NULL.");

        SendingFaultDocument activity = SendingFaultDocument.Factory.newInstance();
        FaultResponderType activityType = activity.addNewSendingFault();

        // set the receiver to the remote entity
        if (context.getRemoteEntity() != null) {
            activityType.addNewReceiver().set(context.getRemoteEntity().toBaseIDType());
        } else {
            logger.warn("Error in context that was passed. "
                    + "There was no remote entity defined (responseReceiver=NULL)");
        }

        // add header and body fields
        if (header != null || faultBody != null) {
            FaultMessageType result = activityType.addNewFault();
            if (header != null)
                result.addNewHeader().set(header);
            if (faultBody != null)
                result.addNewBody().set(faultBody);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.