Package org.apache.airavata.workflow.tracking.impl.state

Examples of org.apache.airavata.workflow.tracking.impl.state.InvocationContextImpl


        WorkflowInvokedDocument activity = WorkflowInvokedDocument.Factory.newInstance();
        RequestReceiverType activityType = activity.addNewWorkflowInvoked();

        // create the invocation context; set the initiator to the remote entity
        InvocationContextImpl invocationContext = new InvocationContextImpl(context.getMyself(), initiator);
        if (initiator != null) {
            activityType.addNewInitiator().set(initiator.toBaseIDType());
        } else {
            logger.warn("Possible Error in context that was passed. "
                    + "There was no remote invoker defined for workflow invoked (initiator=NULL)");
View Full Code Here


        InvokingServiceDocument activity = InvokingServiceDocument.Factory.newInstance();
        RequestInitiatorType activityType = activity.addNewInvokingService();

        // create the invocation context; set the receiver to the remote entity
        InvocationContextImpl invocationContext = new InvocationContextImpl(context.getMyself(), receiver);
        activityType.addNewReceiver().set(receiver.toBaseIDType());

        // add header and body fields
        if (header != null || body != null) {
            InvocationMessageType request = activityType.addNewRequest();
View Full Code Here

        ServiceInvokedDocument activity = ServiceInvokedDocument.Factory.newInstance();
        RequestReceiverType activityType = activity.addNewServiceInvoked();

        // create the invocation context; set the initiator to the remote entity
        InvocationContextImpl invocationContext = new InvocationContextImpl(context.getMyself(), initiator);
        if (initiator != null) {
            activityType.addNewInitiator().set(initiator.toBaseIDType());
        } else {
            logger.warn("Possible Error in context that was passed. "
                    + "There was no remote invoker defined (initiator=NULL)");
View Full Code Here

    public InvocationContext createInitialContext(WorkflowTrackingContext context) {
        if (context.getMyself() == null) {
            throw new RuntimeException("Local entity passed to createInitialContext was NULL");
        }
        return new InvocationContextImpl(context.getMyself(), null);
    }
View Full Code Here

        if (remoteEntity == null) {
            throw new RuntimeException("Remote entity passed to createInitialContext was NULL");
        }

        return new InvocationContextImpl(context.getMyself(), remoteEntity);
    }
View Full Code Here

        // e.g. notifier.invokingServiceFailed().

        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator, this.receiver);
        }

        logger.error(e.getMessage(), e);
        if (message == null || "".equals(message)) {
            message = "Error";
View Full Code Here

    @Deprecated
    public void receivedFault(String message) {
        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator, this.receiver);
        }

        if (message == null || "".equals(message)) {
            message = "Error";
        }
View Full Code Here

    @Override
    public void receivedFault(WSIFMessage fault) {
        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator, this.receiver);
        }

        String message = "Received a fault message from the service";
        XmlObject header = null;
        XmlObject body;
View Full Code Here

        // e.g. notifier.invokingServiceFailed().

        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator, this.receiver);
        }

        logger.error(e.getMessage(), e);
        if (message == null || "".equals(message)) {
            message = "Error";
View Full Code Here

    @Deprecated
    public void receivedFault(String message) {
        // XXX If error occurs before invoking a service, create a fake
        // invocation context.
        if (this.invocationContext == null) {
            this.invocationContext = new InvocationContextImpl(this.initiator, this.receiver);
        }

        if (message == null || "".equals(message)) {
            message = "Error";
        }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.tracking.impl.state.InvocationContextImpl

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.