Import a set of dictionary items as a JAR file
This feature is available on request. Contact SAP Signavio Customer Support for more details.
With the JAR import feature you can import Java classes as dictionary items and use them as data models in the SAP Signavio Decision Manager.
The attributes and relationships of the classes are created as decision input/output data types.
Preparation and requirements
Before importing a JAR file, make sure the target dictionary category supports data modeling.
The classes in your JAR file need to fulfill the following requirements:
- Classes need the @XmlType annotation.
- Attributes need to be of one of the following data types:
- String
- Boolean (and boolean )
- Number (all subclasses) and int , double , byte , long , float
- Nested classes (from the same JAR)
- Collections of the above mentioned data types (no generic collections, for example Set<? extends Number>)

The following example displays a Java class that is valid for the import:
package sandbox.jarClasses;
import java.util.Set;
import javax.xml.bind.annotation.XmlType;
@XmlType
public class Relationship {
private Fruit Apple;
private Fruit Orange;
private Set<Fruit> banana;
private boolean broken;
public Fruit getApple() {
return apple;
}
public void setApple(Fruit Apple) {
this.apple = apple;
}
public Fruit getOrange() {
return orange;
}
public void setOrange(Fruit Orange) {
this.orange = orange;
}
public Set<Fruit> getBanana() {
return banana;
}
public void setBanana(Set<Fruit> banana) {
this.banana = banana;
}
public boolean isBroken() {
return broken;
}
public void setBroken(boolean broken) {
this.broken = broken;
}
}
This example can't be imported because the class lacks the @XmlType annotation:
package sandbox.jarClasses;
public class NotValid extends Relationship {
private int justANumber;
public int getJustANumber() {
return justANumber;
}
public void setJustANumber(int justANumber) {
this.justANumber = justANumber;
}
}
Import a JAR file
Follow these steps:
-
Open the dictionary and click Import / Export > Import JAR.
The Import JAR dialog opens.
- Click Choose File and select a JAR file.
- Click Import.
The JAR's Java classes are available as dictionary items. Refresh your browser to see the imported items.
Do you have feedback for this page? Send us an email
For product support, please contact our service experts on the SAP ONE Support Launchpad.