Package org.apache.airavata.workflow.model.exceptions

Examples of org.apache.airavata.workflow.model.exceptions.WorkflowRuntimeException


            throw new IllegalArgumentException(
                    "Event must be an workflowInitialized type or an workflowTerminated type instead of " + type);
        }
        XmlElement notificationSource = event.element(WOR_NS, NOTIFICATION_SOURCE_TAG);
        if (notificationSource == null) {
            throw new WorkflowRuntimeException("The notification should have " + NOTIFICATION_SOURCE_TAG + " element.");
        }
        String workflowInstanceID = notificationSource.attributeValue(WOR_NS, SERVICE_ID_ATTRIBUTE);
        if (workflowInstanceID == null) {
            throw new WorkflowRuntimeException("The notification should have " + SERVICE_ID_ATTRIBUTE + " attribute.");
        }
        try {
            return new URI(workflowInstanceID);
        } catch (URISyntaxException e) {
            throw new WorkflowRuntimeException(e);
        }
    }
View Full Code Here


                // XXX The algorithm used here is not efficient. It introduces
                // unnessary barriers.
                addFlow(nextNodes, block, sequence);
            } else {
                // Should not happen.
                throw new WorkflowRuntimeException("nextNodes.size(): " + nextNodes.size());
            }
            nextNodes = getNextExecutableNodes(block);
        }
    }
View Full Code Here

        if (this.componentPort == null) {
            ComponentPort port = super.getComponentPort();
            if (port instanceof DynamicComponentPort) {
                this.componentPort = (DynamicComponentPort) port;
            } else {
                throw new WorkflowRuntimeException("UNEXPECTED ERROR: Unable to resolve Port");
            }

        }
        return this.componentPort;
    }
View Full Code Here

        for (DataPort port : this.outputPorts) {
            if (port.getID().equals(fromPortID)) {
                return port;
            }
        }
        throw new WorkflowRuntimeException("Port with id not found :" + fromPortID);
    }
View Full Code Here

    return workflowInterpreter;
  }

  public void registerWorkflowInterpreter(WorkflowInterpreter workflowInterpreter) {
    if (getWorkflowInterpreter()!=null){
      throw new WorkflowRuntimeException("Critical Error!!! Workflow interpretter already running. Cleanup first");
    }
    this.workflowInterpreter = workflowInterpreter;
  }
View Full Code Here

        for (DataPort port : this.inputPorts) {
            if (port.getID().equals(id)) {
                return port;
            }
        }
        throw new WorkflowRuntimeException("Port with id not found :" + id);
    }
View Full Code Here

        case 0:
            return new Integer((String) obj);
        case 1:
            return obj;
        }
        throw new WorkflowRuntimeException("type Not Supported yet!!");
    }
View Full Code Here

            if (xmlNamespace.getName().equals(messageQname.getNamespaceURI())) {
                return xmlNamespace.getPrefix();
            }
        }

        throw new WorkflowRuntimeException("Cannot locate the Namespace  for Qname:" + messageQname + " in the BPEL");
    }
View Full Code Here

                    }
                }

            }
        }
        throw new WorkflowRuntimeException("Unable to find the Message for the PortType " + portType + " operation:"
                + opName);
    }
View Full Code Here

            GpelVariable gpelVariable = iterator.next();
            if (variable.equals(gpelVariable.getName())) {
                return gpelVariable;
            }
        }
        throw new WorkflowRuntimeException("Unable to fine the variable :" + variable + "  in the BPEL variables "
                + variables);
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.model.exceptions.WorkflowRuntimeException

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.