Examples of PublishURLDocument


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

        sendNotification(context, logMsg, descriptionAndAnnotation, null);
    }

    public void publishURL(WorkflowTrackingContext context, String title, String url,
            String... descriptionAndAnnotation) {
        PublishURLDocument pubMsg = PublishURLDocument.Factory.newInstance();
        PublishURLDocument.PublishURL pub = pubMsg.addNewPublishURL();
        pub.setTitle(title);
        pub.setLocation(url);
        sendNotification(context, pubMsg, descriptionAndAnnotation, null);
    }
View Full Code Here

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

            publisher.publish(logMsg);
        }
        // create & publish publishURl message
        {
            // create publish URL message
            PublishURLDocument pubMsg = PublishURLDocument.Factory.newInstance();
            PublishURLDocument.PublishURL pub = pubMsg.addNewPublishURL();
            // add timestamp
            final Calendar cal = new GregorianCalendar();
            cal.setTime(new Date());
            pub.setTimestamp(cal);
            // add notification source
            BaseIDType baseID = BaseIDType.Factory.newInstance();
            baseID.setServiceID("http://tempuri.org/test_service");
            pub.addNewNotificationSource().set(baseID);
            pub.setTitle("Some URL's Title");
            pub.setLocation("http://tempuri.org/published_url");

            // publish message as XML string
            publisher.publish(pubMsg.xmlText());
        }
    }
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.