|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (1)
View Page History
The main method to fill is {{executeOnInactive()}}. It is the one that will be executed when the execution token crosses over the behaviour.
h1. How to add Frascati Explorer into your EasyVIPER application?
You have to add these dependencies:
{code:xml}
<dependency>
<groupId>org.ow2.frascati.tinfi</groupId>
<artifactId>frascati-tinfi-membranes-oo</artifactId>
<version>1.4.1</version>
</dependency>
<dependency>
<groupId>org.ow2.frascati.tinfi</groupId>
<artifactId>frascati-tinfi-runtime</artifactId>
<version>1.4.1</version>
</dependency>
{code}
Then the following code allows to add any SCA component (EasyVIPER core for instance) into the Frascati Explorer GUI:
{code:title=extract|borderStyle=solid}
...
import org.objectweb.util.explorer.api.Tree;
import org.ow2.frascati.FraSCAti;
import org.ow2.frascati.explorer.api.FraSCAtiExplorer;
...
System.setProperty(FraSCAti.FRASCATI_BOOTSTRAP_PROPERTY_NAME, "org.ow2.frascati.bootstrap.FraSCAtiFractal");
// Start FraSCAti and its Explorer.
FraSCAti frascati = FraSCAti.newFraSCAti();
Tree explorerTree = FraSCAtiExplorer.SINGLETON.get().getFraSCAtiExplorerService(Tree.class);
// Add the EasyBPEL core component.
explorerTree.addEntry("EasyBPEL", core.getComponent());
{code}
This will launch Frascati Explorer at runtime.