Package edu.indiana.extreme.lead.workflow_tracking

Examples of edu.indiana.extreme.lead.workflow_tracking.Notifier


                this.configuration.getTopic());

        ConstructorProps props = ConstructorProps.newProps();
        props.set(ConstructorConsts.BROKER_EPR, XMLUtil
                .xmlElementToString(brokerEPR));
        Notifier notifier = NotifierFactory.createNotifier(props);

        URI initiatorWorkflowID = URI.create("Workflow");
        URI initiatorServiceID = URI.create("Adder_add");
        String initiatorWorkflowNodeID1 = "Adder_add";
        Integer workflowTimeStep = new Integer(0);
        InvocationEntity entity1 = notifier.createEntity(initiatorWorkflowID,
                initiatorServiceID, initiatorWorkflowNodeID1, workflowTimeStep);
        notifier.resourceMapping(entity1, "resource1.example.com", 1);
        notifier.resourceMapping(entity1, "resource2.example.com", 2);
        notifier.resourceMapping(entity1, "resource3.example.com", 3);

        String initiatorWorkflowNodeID2 = "Adder_add_2";
        InvocationEntity entity2 = notifier.createEntity(initiatorWorkflowID,
                initiatorServiceID, initiatorWorkflowNodeID2, workflowTimeStep);
        notifier.resourceMapping(entity2, "resource.example.com", 0);
    }
View Full Code Here


                this.configuration.getBrokerURL().toString(),
                this.configuration.getTopic());

        ConstructorProps props = ConstructorProps.newProps();
        props.set(ConstructorConsts.BROKER_EPR, brokerEPR);
        Notifier notifier = NotifierFactory.createNotifier(props);

        InvocationEntity entity = notifier.createEntity(URI
                .create("workflowID"), URI.create("serviceID"),
                "workflowNodeID", new Integer(1) /* step */);
        notifier.publishURL(entity, "title", "http://www.google.com",
                "descriptionAndAnnotation");

        notifier.workflowInitialized(WORKFLOW_INSTANCE_ID);

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

TOP

Related Classes of edu.indiana.extreme.lead.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.