Package org.apache.airavata.workflow.tracking.types

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


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

        ReceivedResultDocument activity = ReceivedResultDocument.Factory.newInstance();
        ResultReceiverType activityType = activity.addNewReceivedResult();

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

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


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

        ReceivedResultDocument activity = ReceivedResultDocument.Factory.newInstance();
        ResultReceiverType activityType = activity.addNewReceivedResult();

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

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

TOP

Related Classes of org.apache.airavata.workflow.tracking.types.ResultReceiverType

Copyright © 2018 www.massapicom. 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.