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

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


        System.out.println("Received Notification Type [" + type + "] on topic [" + topic + "]\n" + messageObj
                + "\n---");

        if (type == NotificationType.WorkflowTerminated) {
            System.out.println("Workflow terminated. Unsubscribing...");
            WorkflowTerminatedDocument obj = (WorkflowTerminatedDocument) messageObj;
            try {
                obj.getWorkflowTerminated().getAnnotation()
                        .set(XmlObject.Factory.parse("<something>someval</something>"));
                System.out.println(obj.toString());
            } catch (XmlException e) {
                e.printStackTrace();
            }
            try {
                subscription.destroy();
View Full Code Here


    /**
     * {@inheritDoc}
     *
     */
    public void workflowTerminated(WorkflowTrackingContext context, URI serviceID, String... descriptionAndAnnotation) {
        WorkflowTerminatedDocument activity = WorkflowTerminatedDocument.Factory.newInstance();
        BaseNotificationType activityType = activity.addNewWorkflowTerminated();
        sendNotification(context, activity, descriptionAndAnnotation,
                "[Workflow is terminated; cannot be invoked anymore]");
    }
View Full Code Here

    /**
     * {@inheritDoc}
     *
     */
    public void workflowTerminated(WorkflowTrackingContext context, URI serviceID, String... descriptionAndAnnotation) {
        WorkflowTerminatedDocument activity = WorkflowTerminatedDocument.Factory.newInstance();
        BaseNotificationType activityType = activity.addNewWorkflowTerminated();
        sendNotification(context, activity, descriptionAndAnnotation,
                "[Workflow is terminated; cannot be invoked anymore]");
    }
View Full Code Here

TOP

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

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.