feierabend
This commit is contained in:
parent
d464b9bb18
commit
07dd033de0
17 changed files with 27 additions and 25 deletions
|
@ -16,9 +16,10 @@ public class BerechnungZahlungsziel implements JavaDelegate {
|
||||||
long diffInMillies = Math.abs(zahlungsziel.getTime() - System.currentTimeMillis());
|
long diffInMillies = Math.abs(zahlungsziel.getTime() - System.currentTimeMillis());
|
||||||
long diff = TimeUnit.HOURS.convert(diffInMillies, TimeUnit.MILLISECONDS);
|
long diff = TimeUnit.HOURS.convert(diffInMillies, TimeUnit.MILLISECONDS);
|
||||||
|
|
||||||
|
if (diff <= 24) execution.setVariable("FormField_bool_Zahlungsziel", true);
|
||||||
|
else execution.setVariable("FormField_bool_Zahlungsziel", false);
|
||||||
System.out.println("Differenz: "+ diff);
|
System.out.println("Differenz: "+ diff);
|
||||||
|
|
||||||
execution.setVariable("FormField_bool_Zahlungsziel", true);
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<text>>= 10000</text>
|
<text>>= 10000</text>
|
||||||
</inputEntry>
|
</inputEntry>
|
||||||
<outputEntry id="LiteralExpression_1ooh9ej">
|
<outputEntry id="LiteralExpression_1ooh9ej">
|
||||||
<text>false</text>
|
<text>"false"</text>
|
||||||
</outputEntry>
|
</outputEntry>
|
||||||
</rule>
|
</rule>
|
||||||
<rule id="DecisionRule_1d2vc9q">
|
<rule id="DecisionRule_1d2vc9q">
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<text>< 10000</text>
|
<text>< 10000</text>
|
||||||
</inputEntry>
|
</inputEntry>
|
||||||
<outputEntry id="LiteralExpression_03m0upc">
|
<outputEntry id="LiteralExpression_03m0upc">
|
||||||
<text>true</text>
|
<text>"true"</text>
|
||||||
</outputEntry>
|
</outputEntry>
|
||||||
</rule>
|
</rule>
|
||||||
</decisionTable>
|
</decisionTable>
|
||||||
|
|
|
@ -92,8 +92,8 @@
|
||||||
<bpmn:userTask id="Activity_1uloahn" name="Zahlungsziel & Rechnngsdaten festsetzen">
|
<bpmn:userTask id="Activity_1uloahn" name="Zahlungsziel & Rechnngsdaten festsetzen">
|
||||||
<bpmn:extensionElements>
|
<bpmn:extensionElements>
|
||||||
<camunda:formData>
|
<camunda:formData>
|
||||||
<camunda:formField id="FormField_long_HoeheRechnungssumme" label="Rechnungssumme eingeben" type="double" defaultValue="0,00" />
|
<camunda:formField id="FormField_long_HoeheRechnungssumme" label="Rechnungssumme eingeben" type="long" />
|
||||||
<camunda:formField id="FormField_date_Zahlungsziel" label="Zahlungsziel eingeben" type="date" defaultValue="TT/MM/YYYY" />
|
<camunda:formField id="FormField_date_Zahlungsziel" label="Zahlungsziel eingeben" type="date" />
|
||||||
</camunda:formData>
|
</camunda:formData>
|
||||||
</bpmn:extensionElements>
|
</bpmn:extensionElements>
|
||||||
<bpmn:incoming>Flow_1kjf7y9</bpmn:incoming>
|
<bpmn:incoming>Flow_1kjf7y9</bpmn:incoming>
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
<bpmn:incoming>Flow_1fwe2w7</bpmn:incoming>
|
<bpmn:incoming>Flow_1fwe2w7</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_0uk4now</bpmn:outgoing>
|
<bpmn:outgoing>Flow_0uk4now</bpmn:outgoing>
|
||||||
</bpmn:businessRuleTask>
|
</bpmn:businessRuleTask>
|
||||||
<bpmn:businessRuleTask id="Activity_0jdjg2h" name="Höhe der Rechnungssumme prüfen" camunda:decisionRef="DMN_HoeheRechnungssumme">
|
<bpmn:businessRuleTask id="Activity_0jdjg2h" name="Höhe der Rechnungssumme prüfen" camunda:resultVariable="FormField_Boolean_HoeheRechnungssumme" camunda:decisionRef="DMN_HoeheRechnungssumme" camunda:mapDecisionResult="singleEntry">
|
||||||
<bpmn:incoming>Flow_1mj7tm1</bpmn:incoming>
|
<bpmn:incoming>Flow_1mj7tm1</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_1hogzdg</bpmn:outgoing>
|
<bpmn:outgoing>Flow_1hogzdg</bpmn:outgoing>
|
||||||
</bpmn:businessRuleTask>
|
</bpmn:businessRuleTask>
|
||||||
|
|
Binary file not shown.
1
Rechnungseingang/target/Rechnungseingang/WEB-INF/classes/.gitignore
vendored
Normal file
1
Rechnungseingang/target/Rechnungseingang/WEB-INF/classes/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/com/
|
|
@ -16,7 +16,7 @@
|
||||||
<text>>= 10000</text>
|
<text>>= 10000</text>
|
||||||
</inputEntry>
|
</inputEntry>
|
||||||
<outputEntry id="LiteralExpression_1ooh9ej">
|
<outputEntry id="LiteralExpression_1ooh9ej">
|
||||||
<text>false</text>
|
<text>"false"</text>
|
||||||
</outputEntry>
|
</outputEntry>
|
||||||
</rule>
|
</rule>
|
||||||
<rule id="DecisionRule_1d2vc9q">
|
<rule id="DecisionRule_1d2vc9q">
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<text>< 10000</text>
|
<text>< 10000</text>
|
||||||
</inputEntry>
|
</inputEntry>
|
||||||
<outputEntry id="LiteralExpression_03m0upc">
|
<outputEntry id="LiteralExpression_03m0upc">
|
||||||
<text>true</text>
|
<text>"true"</text>
|
||||||
</outputEntry>
|
</outputEntry>
|
||||||
</rule>
|
</rule>
|
||||||
</decisionTable>
|
</decisionTable>
|
||||||
|
|
Binary file not shown.
|
@ -92,8 +92,8 @@
|
||||||
<bpmn:userTask id="Activity_1uloahn" name="Zahlungsziel & Rechnngsdaten festsetzen">
|
<bpmn:userTask id="Activity_1uloahn" name="Zahlungsziel & Rechnngsdaten festsetzen">
|
||||||
<bpmn:extensionElements>
|
<bpmn:extensionElements>
|
||||||
<camunda:formData>
|
<camunda:formData>
|
||||||
<camunda:formField id="FormField_long_HoeheRechnungssumme" type="long" />
|
<camunda:formField id="FormField_long_HoeheRechnungssumme" label="Rechnungssumme eingeben" type="long" />
|
||||||
<camunda:formField id="FormField_date_Zahlungsziel" type="date" />
|
<camunda:formField id="FormField_date_Zahlungsziel" label="Zahlungsziel eingeben" type="date" />
|
||||||
</camunda:formData>
|
</camunda:formData>
|
||||||
</bpmn:extensionElements>
|
</bpmn:extensionElements>
|
||||||
<bpmn:incoming>Flow_1kjf7y9</bpmn:incoming>
|
<bpmn:incoming>Flow_1kjf7y9</bpmn:incoming>
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
<bpmn:incoming>Flow_1fwe2w7</bpmn:incoming>
|
<bpmn:incoming>Flow_1fwe2w7</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_0uk4now</bpmn:outgoing>
|
<bpmn:outgoing>Flow_0uk4now</bpmn:outgoing>
|
||||||
</bpmn:businessRuleTask>
|
</bpmn:businessRuleTask>
|
||||||
<bpmn:businessRuleTask id="Activity_0jdjg2h" name="Höhe der Rechnungssumme prüfen" camunda:decisionRef="DMN_HoeheRechnungssumme">
|
<bpmn:businessRuleTask id="Activity_0jdjg2h" name="Höhe der Rechnungssumme prüfen" camunda:resultVariable="FormField_Boolean_HoeheRechnungssumme" camunda:decisionRef="DMN_HoeheRechnungssumme" camunda:mapDecisionResult="singleEntry">
|
||||||
<bpmn:incoming>Flow_1mj7tm1</bpmn:incoming>
|
<bpmn:incoming>Flow_1mj7tm1</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_1hogzdg</bpmn:outgoing>
|
<bpmn:outgoing>Flow_1hogzdg</bpmn:outgoing>
|
||||||
</bpmn:businessRuleTask>
|
</bpmn:businessRuleTask>
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
<text>>= 10000</text>
|
<text>>= 10000</text>
|
||||||
</inputEntry>
|
</inputEntry>
|
||||||
<outputEntry id="LiteralExpression_1ooh9ej">
|
<outputEntry id="LiteralExpression_1ooh9ej">
|
||||||
<text>false</text>
|
<text>"false"</text>
|
||||||
</outputEntry>
|
</outputEntry>
|
||||||
</rule>
|
</rule>
|
||||||
<rule id="DecisionRule_1d2vc9q">
|
<rule id="DecisionRule_1d2vc9q">
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
<text>< 10000</text>
|
<text>< 10000</text>
|
||||||
</inputEntry>
|
</inputEntry>
|
||||||
<outputEntry id="LiteralExpression_03m0upc">
|
<outputEntry id="LiteralExpression_03m0upc">
|
||||||
<text>true</text>
|
<text>"true"</text>
|
||||||
</outputEntry>
|
</outputEntry>
|
||||||
</rule>
|
</rule>
|
||||||
</decisionTable>
|
</decisionTable>
|
||||||
|
|
Binary file not shown.
|
@ -92,8 +92,8 @@
|
||||||
<bpmn:userTask id="Activity_1uloahn" name="Zahlungsziel & Rechnngsdaten festsetzen">
|
<bpmn:userTask id="Activity_1uloahn" name="Zahlungsziel & Rechnngsdaten festsetzen">
|
||||||
<bpmn:extensionElements>
|
<bpmn:extensionElements>
|
||||||
<camunda:formData>
|
<camunda:formData>
|
||||||
<camunda:formField id="FormField_long_HoeheRechnungssumme" type="long" />
|
<camunda:formField id="FormField_long_HoeheRechnungssumme" label="Rechnungssumme eingeben" type="long" />
|
||||||
<camunda:formField id="FormField_date_Zahlungsziel" type="date" />
|
<camunda:formField id="FormField_date_Zahlungsziel" label="Zahlungsziel eingeben" type="date" />
|
||||||
</camunda:formData>
|
</camunda:formData>
|
||||||
</bpmn:extensionElements>
|
</bpmn:extensionElements>
|
||||||
<bpmn:incoming>Flow_1kjf7y9</bpmn:incoming>
|
<bpmn:incoming>Flow_1kjf7y9</bpmn:incoming>
|
||||||
|
@ -164,7 +164,7 @@
|
||||||
<bpmn:incoming>Flow_1fwe2w7</bpmn:incoming>
|
<bpmn:incoming>Flow_1fwe2w7</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_0uk4now</bpmn:outgoing>
|
<bpmn:outgoing>Flow_0uk4now</bpmn:outgoing>
|
||||||
</bpmn:businessRuleTask>
|
</bpmn:businessRuleTask>
|
||||||
<bpmn:businessRuleTask id="Activity_0jdjg2h" name="Höhe der Rechnungssumme prüfen" camunda:decisionRef="DMN_HoeheRechnungssumme">
|
<bpmn:businessRuleTask id="Activity_0jdjg2h" name="Höhe der Rechnungssumme prüfen" camunda:resultVariable="FormField_Boolean_HoeheRechnungssumme" camunda:decisionRef="DMN_HoeheRechnungssumme" camunda:mapDecisionResult="singleEntry">
|
||||||
<bpmn:incoming>Flow_1mj7tm1</bpmn:incoming>
|
<bpmn:incoming>Flow_1mj7tm1</bpmn:incoming>
|
||||||
<bpmn:outgoing>Flow_1hogzdg</bpmn:outgoing>
|
<bpmn:outgoing>Flow_1hogzdg</bpmn:outgoing>
|
||||||
</bpmn:businessRuleTask>
|
</bpmn:businessRuleTask>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
#Generated by Maven
|
#Generated by Maven
|
||||||
#Wed May 27 18:21:29 CEST 2020
|
#Wed May 27 19:02:04 CEST 2020
|
||||||
version=0.0.1-SNAPSHOT
|
version=0.0.1-SNAPSHOT
|
||||||
groupId=com.bpmn
|
groupId=com.bpmn
|
||||||
artifactId=Rechnungseingang
|
artifactId=Rechnungseingang
|
||||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -1,5 +1,5 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" ?>
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
<testsuite tests="2" failures="0" name="com.bpmn.Rechnungseingang.ProcessUnitTest" time="1.831" errors="0" skipped="0">
|
<testsuite tests="2" failures="0" name="com.bpmn.Rechnungseingang.ProcessUnitTest" time="1.648" errors="0" skipped="0">
|
||||||
<properties>
|
<properties>
|
||||||
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
|
<property name="java.runtime.name" value="Java(TM) SE Runtime Environment"/>
|
||||||
<property name="sun.boot.library.path" value="C:\Program Files\Java\jre1.8.0_251\bin"/>
|
<property name="sun.boot.library.path" value="C:\Program Files\Java\jre1.8.0_251\bin"/>
|
||||||
|
@ -27,7 +27,7 @@
|
||||||
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
|
<property name="java.vm.specification.vendor" value="Oracle Corporation"/>
|
||||||
<property name="user.variant" value=""/>
|
<property name="user.variant" value=""/>
|
||||||
<property name="os.name" value="Windows 10"/>
|
<property name="os.name" value="Windows 10"/>
|
||||||
<property name="classworlds.conf" value="C:\Users\Philipp\eclipse-workspace\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf5806348975243053779.tmp"/>
|
<property name="classworlds.conf" value="C:\Users\Philipp\eclipse-workspace\.metadata\.plugins\org.eclipse.m2e.launching\launches\m2conf967513535174912895.tmp"/>
|
||||||
<property name="sun.jnu.encoding" value="Cp1252"/>
|
<property name="sun.jnu.encoding" value="Cp1252"/>
|
||||||
<property name="java.library.path" value="C:\Program Files\Java\jre1.8.0_251\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_251/bin/server;C:/Program Files/Java/jre1.8.0_251/bin;C:/Program Files/Java/jre1.8.0_251/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Philipp\AppData\Local\Microsoft\WindowsApps;C:\Users\Philipp\AppData\Local\GitHubDesktop\bin;C:\Windows\System32;;."/>
|
<property name="java.library.path" value="C:\Program Files\Java\jre1.8.0_251\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre1.8.0_251/bin/server;C:/Program Files/Java/jre1.8.0_251/bin;C:/Program Files/Java/jre1.8.0_251/lib/amd64;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\PuTTY\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Users\Philipp\AppData\Local\Microsoft\WindowsApps;C:\Users\Philipp\AppData\Local\GitHubDesktop\bin;C:\Windows\System32;;."/>
|
||||||
<property name="java.specification.name" value="Java Platform API Specification"/>
|
<property name="java.specification.name" value="Java Platform API Specification"/>
|
||||||
|
@ -61,6 +61,6 @@
|
||||||
<property name="sun.desktop" value="windows"/>
|
<property name="sun.desktop" value="windows"/>
|
||||||
<property name="sun.cpu.isalist" value="amd64"/>
|
<property name="sun.cpu.isalist" value="amd64"/>
|
||||||
</properties>
|
</properties>
|
||||||
<testcase classname="com.bpmn.Rechnungseingang.ProcessUnitTest" name="testParsingAndDeployment" time="1.543"/>
|
<testcase classname="com.bpmn.Rechnungseingang.ProcessUnitTest" name="testParsingAndDeployment" time="1.348"/>
|
||||||
<testcase classname="com.bpmn.Rechnungseingang.ProcessUnitTest" name="testHappyPath" time="0.288"/>
|
<testcase classname="com.bpmn.Rechnungseingang.ProcessUnitTest" name="testHappyPath" time="0.3"/>
|
||||||
</testsuite>
|
</testsuite>
|
|
@ -1,4 +1,4 @@
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Test set: com.bpmn.Rechnungseingang.ProcessUnitTest
|
Test set: com.bpmn.Rechnungseingang.ProcessUnitTest
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.756 sec
|
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 8.232 sec
|
||||||
|
|
Loading…
Reference in a new issue