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

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


        DataConsumedDocument activity = DataConsumedDocument.Factory.newInstance();
        DataProductNotificationType activityType = activity.addNewDataConsumed();

        // set the data product to the consumed data
        DataProductType dataProduct = activityType.addNewDataProduct();
        // set data ID and size
        dataProduct.setId(dataObj.getId().toString());
        dataProduct.setSizeInBytes(dataObj.getSizeInBytes());
        // set data URLs
        List<URI> locations = dataObj.getLocations();
        for (URI location : locations) {
            dataProduct.addLocation(location.toString());
        }
        // set data timestampp
        final Calendar cal = new GregorianCalendar();
        cal.setTime(activityTimestamp != null ? activityTimestamp : new Date());
        dataProduct.setTimestamp(cal);

        sendNotification(context, activity, descriptionAndAnnotation, "[consumed: ID=<" + dataObj.getId().toString()
                + ">; URL=<#" + locations.size() + "><" + (locations.size() > 0 ? locations.get(0) : "") + ">]");

        return dataObj;
View Full Code Here


        DataProducedDocument activity = DataProducedDocument.Factory.newInstance();
        DataProductNotificationType activityType = activity.addNewDataProduced();

        // set the data product to the produced data
        DataProductType dataProduct = activityType.addNewDataProduct();
        // set data ID and size
        dataProduct.setId(dataObj.getId().toString());
        dataProduct.setSizeInBytes(dataObj.getSizeInBytes());
        // set data URLs
        List<URI> locations = dataObj.getLocations();
        for (URI location : locations) {
            dataProduct.addLocation(location.toString());
        }
        // set data timestampp
        final Calendar cal = new GregorianCalendar();
        cal.setTime(activityTimestamp != null ? activityTimestamp : new Date());
        dataProduct.setTimestamp(cal);

        sendNotification(context, activity, descriptionAndAnnotation, "[produced: ID=<" + dataObj.getId().toString()
                + ">; URL=<#" + locations.size() + "><" + (locations.size() > 0 ? locations.get(0) : "") + ">]");

        return dataObj;
View Full Code Here

        // get existing produced notification container
        DataProductNotificationType activityType = dataProducedBatchActivity.addNewDataProduced();

        // add new data product to the produced data
        DataProductType dataProduct = activityType.addNewDataProduct();
        // set data ID and size
        dataProduct.setId(dataObj.getId().toString());
        dataProduct.setSizeInBytes(dataObj.getSizeInBytes());
        // set data URLs
        List<URI> locations = dataObj.getLocations();
        for (URI location : locations) {
            dataProduct.addLocation(location.toString());
        }
        // set data timestamp
        final Calendar cal = new GregorianCalendar();
        cal.setTime(activityTimestamp != null ? activityTimestamp : new Date());
        dataProduct.setTimestamp(cal);

        // add description, and annotation to DATA PRODUCT if present
        sendNotification(context, dataProducedBatchActivity, descriptionAndAnnotation, "[produced: ID=<"
                + dataObj.getId().toString() + ">; URL=<#" + locations.size() + "><"
                + (locations.size() > 0 ? locations.get(0) : "") + ">]");
View Full Code Here

        DataConsumedDocument activity = DataConsumedDocument.Factory.newInstance();
        DataProductNotificationType activityType = activity.addNewDataConsumed();

        // set the data product to the consumed data
        DataProductType dataProduct = activityType.addNewDataProduct();
        // set data ID and size
        dataProduct.setId(dataObj.getId().toString());
        dataProduct.setSizeInBytes(dataObj.getSizeInBytes());
        // set data URLs
        List<URI> locations = dataObj.getLocations();
        for (URI location : locations) {
            dataProduct.addLocation(location.toString());
        }
        // set data timestampp
        final Calendar cal = new GregorianCalendar();
        cal.setTime(activityTimestamp != null ? activityTimestamp : new Date());
        dataProduct.setTimestamp(cal);

        sendNotification(context, activity, descriptionAndAnnotation, "[consumed: ID=<" + dataObj.getId().toString()
                + ">; URL=<#" + locations.size() + "><" + (locations.size() > 0 ? locations.get(0) : "") + ">]");

        return dataObj;
View Full Code Here

        DataProducedDocument activity = DataProducedDocument.Factory.newInstance();
        DataProductNotificationType activityType = activity.addNewDataProduced();

        // set the data product to the produced data
        DataProductType dataProduct = activityType.addNewDataProduct();
        // set data ID and size
        dataProduct.setId(dataObj.getId().toString());
        dataProduct.setSizeInBytes(dataObj.getSizeInBytes());
        // set data URLs
        List<URI> locations = dataObj.getLocations();
        for (URI location : locations) {
            dataProduct.addLocation(location.toString());
        }
        // set data timestampp
        final Calendar cal = new GregorianCalendar();
        cal.setTime(activityTimestamp != null ? activityTimestamp : new Date());
        dataProduct.setTimestamp(cal);

        sendNotification(context, activity, descriptionAndAnnotation, "[produced: ID=<" + dataObj.getId().toString()
                + ">; URL=<#" + locations.size() + "><" + (locations.size() > 0 ? locations.get(0) : "") + ">]");

        return dataObj;
View Full Code Here

        // get existing produced notification container
        DataProductNotificationType activityType = dataProducedBatchActivity.addNewDataProduced();

        // add new data product to the produced data
        DataProductType dataProduct = activityType.addNewDataProduct();
        // set data ID and size
        dataProduct.setId(dataObj.getId().toString());
        dataProduct.setSizeInBytes(dataObj.getSizeInBytes());
        // set data URLs
        List<URI> locations = dataObj.getLocations();
        for (URI location : locations) {
            dataProduct.addLocation(location.toString());
        }
        // set data timestamp
        final Calendar cal = new GregorianCalendar();
        cal.setTime(activityTimestamp != null ? activityTimestamp : new Date());
        dataProduct.setTimestamp(cal);

        // add description, and annotation to DATA PRODUCT if present
        sendNotification(context, dataProducedBatchActivity, descriptionAndAnnotation, "[produced: ID=<"
                + dataObj.getId().toString() + ">; URL=<#" + locations.size() + "><"
                + (locations.size() > 0 ? locations.get(0) : "") + ">]");
View Full Code Here

TOP

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

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.