Skip to content

Commit fa9077a

Browse files
committed
Fix Miniloan Service project
1 parent e1d227b commit fa9077a

17 files changed

+495
-519
lines changed

Miniloan Service/.project

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<projectDescription>
3-
<name>Miniloan Service</name>
4-
<comment></comment>
5-
<projects>
6-
<project>miniloan-xom</project>
7-
</projects>
8-
<buildSpec>
9-
<buildCommand>
10-
<name>ilog.rules.studio.model.ruleBuilder</name>
11-
<arguments>
12-
</arguments>
13-
</buildCommand>
14-
</buildSpec>
15-
<natures>
16-
<nature>ilog.rules.studio.model.decisionProject</nature>
17-
<nature>ilog.rules.studio.model.operationProject</nature>
18-
<nature>ilog.rules.studio.model.ruleNature</nature>
19-
</natures>
20-
</projectDescription>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>Miniloan Service</name>
4+
<comment></comment>
5+
<projects>
6+
<project>miniloan-xom</project>
7+
</projects>
8+
<buildSpec>
9+
<buildCommand>
10+
<name>ilog.rules.studio.model.ruleBuilder</name>
11+
<arguments>
12+
</arguments>
13+
</buildCommand>
14+
</buildSpec>
15+
<natures>
16+
<nature>ilog.rules.studio.model.decisionProject</nature>
17+
<nature>ilog.rules.studio.model.operationProject</nature>
18+
<nature>ilog.rules.studio.model.ruleNature</nature>
19+
</natures>
20+
</projectDescription>

Miniloan Service/.ruleproject

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,35 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<ilog.rules.studio.model.base:RuleProject xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.ibm.rules.studio.model.decisionservice="http://com.ibm.rules.studio/model/decisionservice.ecore" xmlns:ilog.rules.studio.model.base="http://ilog.rules.studio/model/base.ecore" xmlns:ilog.rules.studio.model.bom="http://ilog.rules.studio/model/bom.ecore" xmlns:ilog.rules.studio.model.query="http://ilog.rules.studio/model/query.ecore" xmlns:ilog.rules.studio.model.rule="http://ilog.rules.studio/model/rule.ecore" xmlns:ilog.rules.studio.model.xom="http://ilog.rules.studio/model/xom.ecore" buildMode="DecisionEngine" isADecisionService="true" migrationFlag="3" MigratedToOperationId="33a64099-9f21-4b28-9d24-b61f1ae28e50">
3-
<name>Miniloan Service</name>
4-
<uuid>f4440cab-4dca-471c-8a9e-ec05ede7c031</uuid>
5-
<outputLocation>output</outputLocation>
6-
<categories>any</categories>
7-
<paths xsi:type="ilog.rules.studio.model.xom:XOMPath" pathID="XOM">
8-
<entries xsi:type="ilog.rules.studio.model.xom:LibraryXOMPathEntry" name="org.eclipse.jdt.launching.JRE_CONTAINER" url="file:org.eclipse.jdt.launching.JRE_CONTAINER" kind="LIBRARY"/>
9-
<entries xsi:type="ilog.rules.studio.model.xom:SystemXOMPathEntry" name="miniloan-xom" url="platform:/miniloan-xom" kind="JAVA_PROJECT"/>
10-
</paths>
11-
<paths xsi:type="ilog.rules.studio.model.bom:BOMPath" pathID="BOM">
12-
<entries xsi:type="ilog.rules.studio.model.bom:BOMEntry" name="miniloan" url="platform:/Miniloan Service/bom/miniloan.bom" origin="xom:/Miniloan Service/miniloan-xom"/>
13-
</paths>
14-
<modelFolders xsi:type="ilog.rules.studio.model.base:SourceFolder">
15-
<name>rules</name>
16-
</modelFolders>
17-
<modelFolders xsi:type="ilog.rules.studio.model.bom:BOMFolder">
18-
<name>bom</name>
19-
</modelFolders>
20-
<modelFolders xsi:type="ilog.rules.studio.model.rule:TemplateFolder">
21-
<name>templates</name>
22-
</modelFolders>
23-
<modelFolders xsi:type="ilog.rules.studio.model.query:QueryFolder">
24-
<name>queries</name>
25-
</modelFolders>
26-
<modelFolders xsi:type="com.ibm.rules.studio.model.decisionservice:OperationFolder">
27-
<name>deployment</name>
28-
</modelFolders>
29-
<modelFolders xsi:type="ilog.rules.studio.model.base:ResourceFolder">
30-
<name>resources</name>
31-
</modelFolders>
32-
</ilog.rules.studio.model.base:RuleProject>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ilog.rules.studio.model.base:RuleProject xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.ibm.rules.studio.model.decisionservice="http://com.ibm.rules.studio/model/decisionservice.ecore" xmlns:com.ibm.rules.studio.model.validation="http://com.ibm.rules.studio/model/validation.ecore" xmlns:ilog.rules.studio.model.base="http://ilog.rules.studio/model/base.ecore" xmlns:ilog.rules.studio.model.bom="http://ilog.rules.studio/model/bom.ecore" xmlns:ilog.rules.studio.model.query="http://ilog.rules.studio/model/query.ecore" xmlns:ilog.rules.studio.model.rule="http://ilog.rules.studio/model/rule.ecore" xmlns:ilog.rules.studio.model.xom="http://ilog.rules.studio/model/xom.ecore" buildMode="DecisionEngine" isADecisionService="true" migrationFlag="3" MigratedToOperationId="33a64099-9f21-4b28-9d24-b61f1ae28e50">
3+
<name>Miniloan Service</name>
4+
<uuid>f4440cab-4dca-471c-8a9e-ec05ede7c031</uuid>
5+
<outputLocation>output</outputLocation>
6+
<categories>any</categories>
7+
<paths xsi:type="ilog.rules.studio.model.bom:BOMPath" pathID="BOM">
8+
<entries xsi:type="ilog.rules.studio.model.bom:BOMEntry" name="miniloan" url="platform:/Miniloan Service/bom/miniloan.bom" origin="xom:/Miniloan Service/miniloan-xom"/>
9+
</paths>
10+
<paths xsi:type="ilog.rules.studio.model.xom:XOMPath" pathID="XOM">
11+
<entries xsi:type="ilog.rules.studio.model.xom:LibraryXOMPathEntry" name="org.eclipse.jdt.launching.JRE_CONTAINER" url="file:org.eclipse.jdt.launching.JRE_CONTAINER" kind="LIBRARY"/>
12+
<entries xsi:type="ilog.rules.studio.model.xom:SystemXOMPathEntry" name="miniloan-xom" url="platform:/miniloan-xom" kind="JAVA_PROJECT"/>
13+
</paths>
14+
<modelFolders xsi:type="ilog.rules.studio.model.base:SourceFolder">
15+
<name>rules</name>
16+
</modelFolders>
17+
<modelFolders xsi:type="ilog.rules.studio.model.rule:TemplateFolder">
18+
<name>templates</name>
19+
</modelFolders>
20+
<modelFolders xsi:type="ilog.rules.studio.model.bom:BOMFolder">
21+
<name>bom</name>
22+
</modelFolders>
23+
<modelFolders xsi:type="ilog.rules.studio.model.query:QueryFolder">
24+
<name>queries</name>
25+
</modelFolders>
26+
<modelFolders xsi:type="ilog.rules.studio.model.base:ResourceFolder">
27+
<name>resources</name>
28+
</modelFolders>
29+
<modelFolders xsi:type="com.ibm.rules.studio.model.decisionservice:OperationFolder">
30+
<name>deployment</name>
31+
</modelFolders>
32+
<modelFolders xsi:type="com.ibm.rules.studio.model.validation:ValidationFolder">
33+
<name>.validation</name>
34+
</modelFolders>
35+
</ilog.rules.studio.model.base:RuleProject>

Miniloan Service/Miniloan Test.launch

Lines changed: 0 additions & 34 deletions
This file was deleted.

Miniloan Service/bom/miniloan.b2xa

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<b2x:translation xmlns:b2x="http://schemas.ilog.com/JRules/1.3/Translation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.ilog.com/JRules/1.3/Translation ilog/rules/schemas/1_3/b2x.xsd">
2-
<id>b8f926e7-3133-4e64-9732-429d94bcea23</id>
3-
<lang>ARL</lang>
1+
2+
<b2x:translation xmlns:b2x="http://schemas.ilog.com/JRules/1.3/Translation" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://schemas.ilog.com/JRules/1.3/Translation ilog/rules/schemas/1_3/b2x.xsd">
3+
<id>b8f926e7-3133-4e64-9732-429d94bcea23</id>
4+
<lang>ARL</lang>
45
</b2x:translation>

Miniloan Service/bom/miniloan.bom

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
2-
property loadGetterSetterAsProperties "true"
3-
property origin "xom:/Miniloan Service/miniloan-xom"
4-
property uuid "d3f41bc5-5c35-4232-aa7b-23ae87e16477"
5-
package miniloan;
6-
7-
8-
public class Borrower
9-
{
10-
public int creditScore;
11-
public readonly string name;
12-
public int yearlyIncome;
13-
public Borrower(string name, int creditScore, int yearlyIncome)
14-
property "ilog.rules.engine.dataio.forConversion" "true";
15-
public Borrower();
16-
}
17-
18-
public class Loan
19-
{
20-
public readonly int amount;
21-
public readonly string approvalStatus
22-
property "factory.ignore" "true";
23-
public boolean approved
24-
property "factory.ignore" "true";
25-
public readonly int duration;
26-
public readonly java.util.Collection messages domain 0,* class string;
27-
public readonly double yearlyInterestRate;
28-
public readonly int yearlyRepayment;
29-
public Loan(int amount, int duration, double yearlyInterestRate)
30-
property "ilog.rules.engine.dataio.forConversion" "true";
31-
public Loan();
32-
public void addToMessages(string arg);
33-
public void reject();
34-
public void removeFromMessages(string arg);
35-
}
36-
1+
2+
property loadGetterSetterAsProperties "true"
3+
property origin "xom:/Miniloan Service/miniloan-xom"
4+
property uuid "d3f41bc5-5c35-4232-aa7b-23ae87e16477"
5+
package miniloan;
6+
7+
8+
public class Borrower
9+
{
10+
public int creditScore;
11+
public readonly string name;
12+
public int yearlyIncome;
13+
public Borrower(string name, int creditScore, int yearlyIncome)
14+
property "ilog.rules.engine.dataio.forConversion" "true";
15+
public Borrower();
16+
}
17+
18+
public class Loan
19+
{
20+
public readonly int amount;
21+
public readonly string approvalStatus
22+
property "factory.ignore" "true";
23+
public boolean approved
24+
property "factory.ignore" "true";
25+
public readonly int duration;
26+
public readonly java.util.Collection messages domain 0,* class string;
27+
public readonly double yearlyInterestRate;
28+
public readonly int yearlyRepayment;
29+
public Loan(int amount, int duration, double yearlyInterestRate)
30+
property "ilog.rules.engine.dataio.forConversion" "true";
31+
public Loan();
32+
public void addToMessages(string arg);
33+
public void reject();
34+
public void removeFromMessages(string arg);
35+
}
36+
Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<com.ibm.rules.studio.model.decisionservice:Operation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.ibm.rules.studio.model.decisionservice="http://com.ibm.rules.studio/model/decisionservice.ecore" xmlns:ilog.rules.studio.model.query.extractor="http://ilog.rules.studio/model/query/extractor.ecore" rulesetName="Miniloan_ServiceRuleset" usingRuleflow="true" ruleflowName="miniloan" targetRuleProjectName="Miniloan Service">
3-
<name>Miniloan ServiceOperation</name>
4-
<uuid>30b58bec-77bb-430f-a9dd-2ed16dfa4426</uuid>
5-
<referencedVariables variableName="borrower" variableSetName="Miniloan ServiceParameters">
6-
<variableSet href="../rules/Miniloan%20ServiceParameters.var#92d289c8-4db8-4669-bb9f-4a48010ba78c"/>
7-
</referencedVariables>
8-
<referencedVariables variableName="loan" variableSetName="Miniloan ServiceParameters" direction="IN_OUT">
9-
<variableSet href="../rules/Miniloan%20ServiceParameters.var#92d289c8-4db8-4669-bb9f-4a48010ba78c"/>
10-
</referencedVariables>
11-
<ruleflow href="../rules/miniloan.rfl#f52ba17a-2a7e-4caa-9092-fecf906fcd6d"/>
12-
<extractor xsi:type="ilog.rules.studio.model.query.extractor:QueryExtractor" name="Miniloan ServiceOperation_extractor" validator="Default Validator"/>
13-
<targetRuleProject href="../../Miniloan%20Service#f4440cab-4dca-471c-8a9e-ec05ede7c031"/>
14-
</com.ibm.rules.studio.model.decisionservice:Operation>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<com.ibm.rules.studio.model.decisionservice:Operation xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:com.ibm.rules.studio.model.decisionservice="http://com.ibm.rules.studio/model/decisionservice.ecore" xmlns:ilog.rules.studio.model.query.extractor="http://ilog.rules.studio/model/query/extractor.ecore" rulesetName="Miniloan_ServiceRuleset" usingRuleflow="true" ruleflowName="miniloan" usingExtractor="true">
3+
<name>Miniloan ServiceOperation</name>
4+
<uuid>30b58bec-77bb-430f-a9dd-2ed16dfa4426</uuid>
5+
<referencedVariables variableName="borrower" variableSetName="Miniloan ServiceParameters">
6+
<variableSet href="../rules/Miniloan%20ServiceParameters.var#92d289c8-4db8-4669-bb9f-4a48010ba78c"/>
7+
</referencedVariables>
8+
<referencedVariables variableName="loan" variableSetName="Miniloan ServiceParameters" direction="IN_OUT">
9+
<variableSet href="../rules/Miniloan%20ServiceParameters.var#92d289c8-4db8-4669-bb9f-4a48010ba78c"/>
10+
</referencedVariables>
11+
<ruleflow href="../rules/miniloan.rfl#f52ba17a-2a7e-4caa-9092-fecf906fcd6d"/>
12+
<extractor xsi:type="ilog.rules.studio.model.query.extractor:QueryExtractor" name="Miniloan ServiceOperation_extractor" validator="Default Validator"/>
13+
<targetRuleProject href="../../Miniloan%20Service#f4440cab-4dca-471c-8a9e-ec05ede7c031"/>
14+
</com.ibm.rules.studio.model.decisionservice:Operation>
Lines changed: 46 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,46 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<com.ibm.rules.studio.model.decisionservice:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.rules.studio.model.decisionservice="http://com.ibm.rules.studio/model/decisionservice.ecore" ruleAppName="mydeployment" managingXom="true">
3-
<name>Miniloan</name>
4-
<uuid>44b9b9ad-f66d-408e-8ef0-61c8fe12f445</uuid>
5-
<operations operationName="Miniloan ServiceOperation">
6-
<operation href="Miniloan%20ServiceOperation.dop#30b58bec-77bb-430f-a9dd-2ed16dfa4426"/>
7-
<properties key="ruleset.version">
8-
<value><![CDATA[1.0]]></value>
9-
</properties>
10-
<properties key="ruleset.bom.enabled">
11-
<value><![CDATA[true]]></value>
12-
</properties>
13-
<properties key="monitoring.enabled">
14-
<value><![CDATA[true]]></value>
15-
</properties>
16-
<properties key="ruleset.sequential.trace.enabled">
17-
<value><![CDATA[true]]></value>
18-
</properties>
19-
</operations>
20-
<versionPolicies label="Increment minor version numbers" ruleset="INCREMENT_MINOR" default="true" recurrent="true">
21-
<description><![CDATA[Updates the minor version for each ruleset. Makes the new version available but retains previous versions.]]></description>
22-
</versionPolicies>
23-
<versionPolicies label="Use the base version numbers" recurrent="true">
24-
<description><![CDATA[Uses the numbers provided in the deployment configuration. Replaces the latest version of each ruleset with this release. Used for hot fixes or development.]]></description>
25-
</versionPolicies>
26-
<versionPolicies label="The user can define the version numbers" ruleset="MANUAL" recurrent="true">
27-
<description><![CDATA[Allows you to enter your own version numbers. Used for hot fixes or updates to an earlier release.]]></description>
28-
</versionPolicies>
29-
</com.ibm.rules.studio.model.decisionservice:Deployment>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<com.ibm.rules.studio.model.decisionservice:Deployment xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:com.ibm.rules.studio.model.decisionservice="http://com.ibm.rules.studio/model/decisionservice.ecore" ruleAppName="mydeployment" managingXom="true">
3+
<eAnnotations source="ilog.rules.custom_properties">
4+
<details key="Dep_Groups" value="rtsAdministrator,rtsConfigManager"/>
5+
<details key="Dep_SnapshotCreationKind" value="ALWAYS"/>
6+
</eAnnotations>
7+
<name>Miniloan</name>
8+
<uuid>44b9b9ad-f66d-408e-8ef0-61c8fe12f445</uuid>
9+
<targets label="Decision Service Execution"/>
10+
<operations operationName="Miniloan ServiceOperation">
11+
<operation href="Miniloan%20ServiceOperation.dop#30b58bec-77bb-430f-a9dd-2ed16dfa4426"/>
12+
<properties key="ruleset.bom.enabled">
13+
<value><![CDATA[true]]></value>
14+
</properties>
15+
<properties key="ruleset.version">
16+
<value><![CDATA[1.0]]></value>
17+
</properties>
18+
<properties key="com.ibm.rules.engine.bytecode.generation">
19+
<value><![CDATA[true]]></value>
20+
</properties>
21+
<properties key="ruleset.trace.enabled">
22+
<value><![CDATA[false]]></value>
23+
</properties>
24+
<properties key="ruleset.debug.enabled">
25+
<value><![CDATA[false]]></value>
26+
</properties>
27+
<properties key="ruleset.status">
28+
<value><![CDATA[enabled]]></value>
29+
</properties>
30+
<properties key="monitoring.enabled">
31+
<value><![CDATA[true]]></value>
32+
</properties>
33+
<properties key="ruleset.sequential.trace.enabled">
34+
<value><![CDATA[true]]></value>
35+
</properties>
36+
</operations>
37+
<versionPolicies label="Increment minor version numbers" ruleset="INCREMENT_MINOR" default="true" recurrent="true">
38+
<description><![CDATA[Updates the minor version for each ruleset. Makes the new version available but retains previous versions.]]></description>
39+
</versionPolicies>
40+
<versionPolicies label="Use the base version numbers" recurrent="true">
41+
<description><![CDATA[Uses the numbers provided in the deployment configuration. Replaces the latest version of each ruleset with this release. Used for hot fixes or development.]]></description>
42+
</versionPolicies>
43+
<versionPolicies label="The user can define the version numbers" ruleset="MANUAL" recurrent="true">
44+
<description><![CDATA[Allows you to enter your own version numbers. Used for hot fixes or updates to an earlier release.]]></description>
45+
</versionPolicies>
46+
</com.ibm.rules.studio.model.decisionservice:Deployment>
-51 KB
Binary file not shown.
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
<?xml version="1.0" encoding="UTF-8"?>
2-
<ilog.rules.studio.model.base:VariableSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ilog.rules.studio.model.base="http://ilog.rules.studio/model/base.ecore">
3-
<name>Miniloan ServiceParameters</name>
4-
<uuid>92d289c8-4db8-4669-bb9f-4a48010ba78c</uuid>
5-
<variables name="borrower" type="miniloan.Borrower" initialValue="" verbalization="the borrower"/>
6-
<variables name="loan" type="miniloan.Loan" initialValue="" verbalization="the loan"/>
7-
</ilog.rules.studio.model.base:VariableSet>
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<ilog.rules.studio.model.base:VariableSet xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:ilog.rules.studio.model.base="http://ilog.rules.studio/model/base.ecore">
3+
<name>Miniloan ServiceParameters</name>
4+
<uuid>92d289c8-4db8-4669-bb9f-4a48010ba78c</uuid>
5+
<variables name="borrower" type="miniloan.Borrower" initialValue="" verbalization="the borrower"/>
6+
<variables name="loan" type="miniloan.Loan" initialValue="" verbalization="the loan"/>
7+
</ilog.rules.studio.model.base:VariableSet>

0 commit comments

Comments
 (0)