Search in sources :

Example 96 with Context

use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.

the class InputDataConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    InputData id = (InputData) parent;
    if (id.getVariable() != null) {
        writeChildrenNode(writer, context, id.getVariable(), VARIABLE);
    }
}
Also used : InputData(org.kie.dmn.model.v1_1.InputData)

Example 97 with Context

use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.

the class KnowledgeRequirementConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    KnowledgeRequirement kr = (KnowledgeRequirement) parent;
    writeChildrenNode(writer, context, kr.getRequiredKnowledge(), REQUIRED_KNOWLEDGE);
}
Also used : KnowledgeRequirement(org.kie.dmn.model.v1_1.KnowledgeRequirement)

Example 98 with Context

use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.

the class LiteralExpressionConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    LiteralExpression le = (LiteralExpression) parent;
    if (le.getText() != null)
        writeChildrenNodeAsValue(writer, context, le.getText(), TEXT);
    // TODO Or if-else ?
    if (le.getImportedValues() != null)
        writeChildrenNode(writer, context, le.getImportedValues(), IMPORTED_VALUES);
}
Also used : LiteralExpression(org.kie.dmn.model.v1_1.LiteralExpression)

Example 99 with Context

use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.

the class OrganizationUnitConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    OrganizationUnit ou = (OrganizationUnit) parent;
    for (DMNElementReference dm : ou.getDecisionMade()) {
        writeChildrenNode(writer, context, dm, DECISION_MADE);
    }
    for (DMNElementReference downed : ou.getDecisionOwned()) {
        writeChildrenNode(writer, context, downed, DECISION_OWNED);
    }
}
Also used : DMNElementReference(org.kie.dmn.model.v1_1.DMNElementReference) OrganizationUnit(org.kie.dmn.model.v1_1.OrganizationUnit)

Example 100 with Context

use of org.kie.dmn.model.v1_1.Context in project drools by kiegroup.

the class RelationConverter method writeChildren.

@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
    super.writeChildren(writer, context, parent);
    Relation r = (Relation) parent;
    for (InformationItem c : r.getColumn()) {
        writeChildrenNode(writer, context, c, COLUMN);
    }
    for (org.kie.dmn.model.v1_1.List row : r.getRow()) {
        writeChildrenNode(writer, context, row, ROW);
    }
}
Also used : Relation(org.kie.dmn.model.v1_1.Relation) InformationItem(org.kie.dmn.model.v1_1.InformationItem)

Aggregations

Context (org.eclipse.jst.server.tomcat.core.internal.xml.server40.Context)58 Context (com.microsoft.z3.Context)36 CoreException (org.eclipse.core.runtime.CoreException)34 Test (org.junit.Test)29 List (java.util.List)24 BoolExpr (com.microsoft.z3.BoolExpr)23 HashMap (java.util.HashMap)20 IOException (java.io.IOException)18 Map (java.util.Map)18 ArrayList (java.util.ArrayList)17 ServerInstance (org.eclipse.jst.server.tomcat.core.internal.xml.server40.ServerInstance)17 Context (org.kie.workbench.common.dmn.api.definition.v1_1.Context)17 DMNMessage (org.kie.dmn.api.core.DMNMessage)14 File (java.io.File)13 Solver (com.microsoft.z3.Solver)12 Status (com.microsoft.z3.Status)12 IPath (org.eclipse.core.runtime.IPath)11 IStatus (org.eclipse.core.runtime.IStatus)11 Status (org.eclipse.core.runtime.Status)11 Factory (org.eclipse.jst.server.tomcat.core.internal.xml.Factory)11