Table of Contents |
---|
Introduction
Let's begin by writing a very simple graph to get acquainted with directed graph. To follow this tutorial you need to already have you Ubuntu VM setup with SLI. The tutorial to do this is at Install Oracle VM and Ubuntu. (fill in link)
...
service-logic is used to uniquely identify a graph. Double left click on this node and a dialog window will appear.
For module fill in TUTORIAL in all caps. For version simply put down 1 and then click Ok. Now double click on the method node.
By deffault it will have rpc='', click between the single quotes and type in helloWorld like in the screen shot below then click Ok.
Your First Graph
...
Connect dgstart to service-logic, service-logic to method, and method to record. Your screen should look similar to the screenshot below.
Double click on the record node. By default the node will just have the tag <record>. Highlight and delete this tag. Copy the below XML onto your clipboard and then paste it into your node then click ok.
...
Your node should look like this (This screenshot is slightly out of date, use the plugin name in the code block above "org.openecomp.sdnc.sli.recording.Slf4jRecorder")
At this point this is a working directed graph, quite possibly the simplest graph that can be written.
...
Double left click on the second record node, using the editor change field1 from "Hello World!" to "Goodbye". Click save, then upload and activate this graph.
Submit the same REST request and tail the debug log.
...