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