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

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


            // add timestamp
            final Calendar cal = new GregorianCalendar();
            cal.setTime(new Date());
            log.setTimestamp(cal);
            // add notification source
            BaseIDType baseID = BaseIDType.Factory.newInstance();
            baseID.setServiceID("http://tempuri.org/test_service");
            log.addNewNotificationSource().set(baseID);
            // add description
            log.setDescription("A test message");

            // publish message as XML Object
            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
View Full Code Here


        return workflowID;
    }

    public BaseIDType toBaseIDType() {

        BaseIDType baseID = BaseIDType.Factory.newInstance();
        if (serviceID != null)
            baseID.setServiceID(serviceID.toString());
        if (workflowID != null)
            baseID.setWorkflowID(workflowID.toString());
        if (workflowTimestep != null)
            baseID.setWorkflowTimestep(workflowTimestep);
        if (workflowNodeID != null)
            baseID.setWorkflowNodeID(workflowNodeID);

        return baseID;
    }
View Full Code Here

TOP

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

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.