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

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


            Integer myTimestep) throws XmlException {

        assert WORKFLOW_1.equals(myServiceID);

        WorkflowNotifier notifier = NotifierFactory.createWorkflowNotifier();
        WorkflowTrackingContext context = notifier.createTrackingContext(new Properties(), BROKER_URL, myWorkflowID,
                myServiceID, myNodeID, myTimestep);

        InvocationContext myInvocation = notifier.workflowInvoked(context, myInvoker,
                XmlObject.Factory.parse("<soapHeader/>"),
                XmlObject.Factory.parse("<soapBody>input1,input2</soapBody>"), "This is the start of this workflow");
View Full Code Here


        assert SERVICE_1.equals(myServiceID);

        // if we were not publishing data products, a serviceNotifier would have
        // sufficed
        ProvenanceNotifier notifier = NotifierFactory.createProvenanceNotifier();
        WorkflowTrackingContext context = notifier.createTrackingContext(null, BROKER_URL, myWorkflowID, myServiceID,
                myNodeID, myTimestep);
        InvocationContext invocationContext = notifier.serviceInvoked(context, myInvoker,
                "I (service1) was invoked by my invoker",
                AnnotationProps.newProps(AnnotationConsts.AbstractServiceID, myServiceID.toString() + "-abstract")
                        .toString());
View Full Code Here

        // if we were not publishing data products, a serviceNotifier would have
        // sufficed
        ProvenanceNotifier notifier = NotifierFactory.createProvenanceNotifier();

        // received request
        WorkflowTrackingContext context = notifier.createTrackingContext(null, BROKER_URL, myWorkflowID, myServiceID,
                myNodeID, myTimestep);
        InvocationContext invocationContext = notifier.serviceInvoked(context, myInvoker,
                "I (service2) was invoked by my invoker");

        notifier.dataConsumed(context, DATA_URI_2, DATA_URLS_2, "consuming file used by service1");
View Full Code Here

    // properties to create it in the main method
    private Notifier notifier;

    public void runSample() throws Exception {
        notifier = NotifierFactory.createNotifier();
        WorkflowTrackingContext context = notifier.createTrackingContext(null, BROKER_URL, WORKFLOW_1, SERVICE_0, null,
                null);
        // create workflow and service instances
        {

            WorkflowNotifier notifier = NotifierFactory.createWorkflowNotifier();
View Full Code Here

    }

    public WorkflowTrackingContext createTrackingContext(Properties golbalProperties, String epr, URI workflowID,
            URI serviceID, String workflowNodeID, Integer workflowTimestep) {
        WorkflowTrackingContext workflowTrackingContext = new WorkflowTrackingContext();
        workflowTrackingContext.setGlobalAnnotations(golbalProperties);
        workflowTrackingContext.setBrokerEpr(new EndpointReference(epr));
        workflowTrackingContext.setMyself(createEntity(workflowID, serviceID, workflowNodeID, workflowTimestep));
        return workflowTrackingContext;
    }
View Full Code Here

        URI serviceServiceID = URI.create("ServiceID");
        String serviceNodeID = nodeID;
        Integer serviceTimestep = null;
        InvocationEntity serviceEntity = notifier.createEntity(serviceWorkflowID, serviceServiceID, serviceNodeID,
                serviceTimestep);
        WorkflowTrackingContext workflowContext = notifier.createTrackingContext(new Properties(), this.configuration
                .getBrokerURL().toASCIIString(), myWorkflowID, myServiceID, myNodeID, myTimestep);

        XmlElement inputBody = (XmlElement) ((XmlElement) inputMessage).getParent();
        XmlObject inputBodyObject = XBeansUtil.xmlElementToXmlObject(inputBody);
View Full Code Here

        URI initiatorWorkflowID = URI.create("Workflow");
        URI initiatorServiceID = URI.create("Adder_add");
        String initiatorWorkflowNodeID1 = "Adder_add";
        Integer workflowTimeStep = new Integer(0);
        WorkflowTrackingContext context = notifier.createTrackingContext(new Properties(), brokerEPR.toString(),
                initiatorWorkflowID, initiatorServiceID, initiatorWorkflowNodeID1, workflowTimeStep);
        notifier.resourceMapping(context, "resource1.example.com", 1, null);
        notifier.resourceMapping(context, "resource2.example.com", 2);
        notifier.resourceMapping(context, "resource3.example.com", 3);
View Full Code Here

        URI serviceServiceID = URI.create("ServiceID");
        String serviceNodeID = nodeID;
        Integer serviceTimestep = null;
        InvocationEntity serviceEntity = notifier.createEntity(serviceWorkflowID, serviceServiceID, serviceNodeID,
                serviceTimestep);
        WorkflowTrackingContext workflowContext = notifier.createTrackingContext(new Properties(), this.configuration
                .getBrokerURL().toASCIIString(), myWorkflowID, myServiceID, myNodeID, myTimestep);

        XmlElement inputBody = (XmlElement) ((XmlElement) inputMessage).getParent();
        XmlObject inputBodyObject = XBeansUtil.xmlElementToXmlObject(inputBody);
View Full Code Here

        EndpointReference brokerEPR = WseMsgBrokerClient.createEndpointReference(this.configuration.getBrokerURL()
                .toString(), this.configuration.getTopic());

        Notifier notifier = NotifierFactory.createNotifier();

        WorkflowTrackingContext context = notifier.createTrackingContext(new Properties(), brokerEPR.toString(),
                URI.create("workflowID"), URI.create("serviceID"), "workflowNodeID", new Integer(1));
        notifier.publishURL(context, "title", "http://www.google.com", "descriptionAndAnnotation");

        notifier.workflowInitialized(context, WORKFLOW_INSTANCE_ID);
View Full Code Here

    }

    public WorkflowTrackingContext createTrackingContext(Properties golbalProperties, String epr, URI workflowID,
            URI serviceID, String workflowNodeID, Integer workflowTimestep) {
        WorkflowTrackingContext workflowTrackingContext = new WorkflowTrackingContext();
        workflowTrackingContext.setGlobalAnnotations(golbalProperties);
        workflowTrackingContext.setBrokerEpr(new EndpointReference(epr));
        workflowTrackingContext.setMyself(createEntity(workflowID, serviceID, workflowNodeID, workflowTimestep));
        return workflowTrackingContext;
    }
View Full Code Here

TOP

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

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.