Package org.apache.airavata.workflow.tracking

Examples of org.apache.airavata.workflow.tracking.Notifier


     *
     */
    public void test() {
        EndpointReference brokerEPR = WseMsgBrokerClient.createEndpointReference(this.configuration.getBrokerURL()
                .toString(), this.configuration.getTopic());
        Notifier notifier = NotifierFactory.createNotifier();

        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);

        String initiatorWorkflowNodeID2 = "Adder_add_2";
        context = notifier.createTrackingContext(new Properties(), brokerEPR.toString(), initiatorWorkflowID,
                initiatorServiceID, initiatorWorkflowNodeID2, workflowTimeStep);
        notifier.resourceMapping(context, "resource.example.com", 0);
    }
View Full Code Here


     */
    public void test() {
        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);

        DataObjImpl dataObj = new DataObjImpl(URI.create("test"), new ArrayList<URI>());
        notifier.dataConsumed(context, dataObj, "description");
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.workflow.tracking.Notifier

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.