use of org.kie.dmn.model.api.AuthorityRequirement in project drools by kiegroup.
the class KnowledgeSourceConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
KnowledgeSource ks = (KnowledgeSource) parent;
for (AuthorityRequirement ar : ks.getAuthorityRequirement()) {
writeChildrenNode(writer, context, ar, AUTHORITY_REQUIREMENT);
}
if (ks.getType() != null)
writeChildrenNode(writer, context, ks.getType(), TYPE);
if (ks.getOwner() != null)
writeChildrenNode(writer, context, ks.getOwner(), OWNER);
}
use of org.kie.dmn.model.api.AuthorityRequirement in project drools by kiegroup.
the class BusinessKnowledgeModelConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
BusinessKnowledgeModel bkm = (BusinessKnowledgeModel) parent;
if (bkm.getEncapsulatedLogic() != null)
writeChildrenNode(writer, context, bkm.getEncapsulatedLogic(), ENCAPSULATED_LOGIC);
// Now as Invocable: if (bkm.getVariable() != null) writeChildrenNode(writer, context, bkm.getVariable(), VARIABLE);
for (KnowledgeRequirement i : bkm.getKnowledgeRequirement()) {
writeChildrenNode(writer, context, i, KNOWLEDGE_REQUIREMENT);
}
for (AuthorityRequirement a : bkm.getAuthorityRequirement()) {
writeChildrenNode(writer, context, a, AUTHORITY_REQUIREMENT);
}
}
use of org.kie.dmn.model.api.AuthorityRequirement in project drools by kiegroup.
the class KnowledgeSourceConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
KnowledgeSource ks = (KnowledgeSource) parent;
for (AuthorityRequirement ar : ks.getAuthorityRequirement()) {
writeChildrenNode(writer, context, ar, AUTHORITY_REQUIREMENT);
}
if (ks.getType() != null)
writeChildrenNode(writer, context, ks.getType(), TYPE);
if (ks.getOwner() != null)
writeChildrenNode(writer, context, ks.getOwner(), OWNER);
}
use of org.kie.dmn.model.api.AuthorityRequirement in project drools by kiegroup.
the class BusinessKnowledgeModelConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
BusinessKnowledgeModel bkm = (BusinessKnowledgeModel) parent;
if (bkm.getEncapsulatedLogic() != null)
writeChildrenNode(writer, context, bkm.getEncapsulatedLogic(), ENCAPSULATED_LOGIC);
// Now as Invocable: if (bkm.getVariable() != null) writeChildrenNode(writer, context, bkm.getVariable(), VARIABLE);
for (KnowledgeRequirement i : bkm.getKnowledgeRequirement()) {
writeChildrenNode(writer, context, i, KNOWLEDGE_REQUIREMENT);
}
for (AuthorityRequirement a : bkm.getAuthorityRequirement()) {
writeChildrenNode(writer, context, a, AUTHORITY_REQUIREMENT);
}
}
use of org.kie.dmn.model.api.AuthorityRequirement in project drools by kiegroup.
the class AuthorityRequirementConverter method writeChildren.
@Override
protected void writeChildren(HierarchicalStreamWriter writer, MarshallingContext context, Object parent) {
super.writeChildren(writer, context, parent);
AuthorityRequirement ar = (AuthorityRequirement) parent;
if (ar.getRequiredDecision() != null)
writeChildrenNode(writer, context, ar.getRequiredDecision(), REQUIRED_DECISION);
if (ar.getRequiredInput() != null)
writeChildrenNode(writer, context, ar.getRequiredInput(), REQUIRED_INPUT);
if (ar.getRequiredAuthority() != null)
writeChildrenNode(writer, context, ar.getRequiredAuthority(), REQUIRED_AUTHORITY);
}
Aggregations