Package org.apache.airavata.workflow.tracking.common

Examples of org.apache.airavata.workflow.tracking.common.AnnotationProps


     */
    public static ConstructorProps createConstructorPropsFromLeadContext(LeadContextHeader leadContext) {
        EndpointReference sinkEpr = leadContext.getEventSink();
        ConstructorProps props = ConstructorProps.newProps(ConstructorConsts.BROKER_EPR, sinkEpr.getAddress());

        AnnotationProps annotationProps = AnnotationProps.newProps();
        String experimentId = leadContext.getExperimentId();
        if (experimentId != null) {
            annotationProps.set(AnnotationConsts.ExperimentID, experimentId);
        }
        URI workflowTemplateId = leadContext.getWorkflowTemplateId();
        if (workflowTemplateId != null) {
            annotationProps.set(AnnotationConsts.AbstractWorkflowID, workflowTemplateId.toString());
        }
        String userDn = leadContext.getUserDn();
        if (userDn != null) {
            annotationProps.set(AnnotationConsts.UserDN, userDn);
        }
        props.set(ConstructorConsts.ANNOTATIONS, annotationProps);
        return props;
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.tracking.common.AnnotationProps

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.