2009-12-22 19:23:38 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
|
|
|
|
|
|
|
|
|
<resource-list xmlns="http://rest.ws.navalplanner.org">
|
|
|
|
|
|
|
|
|
|
<!-- *** Machines *** -->
|
2009-12-31 13:59:04 +01:00
|
|
|
|
2009-12-22 19:23:38 +01:00
|
|
|
<!-- OK -->
|
2010-01-05 20:01:26 +01:00
|
|
|
<machine code="m1" name="m1-name" description="m1-desc"/>
|
2009-12-31 13:59:04 +01:00
|
|
|
|
2009-12-22 19:23:38 +01:00
|
|
|
<!-- Missing code and name (description is optional). -->
|
|
|
|
|
<machine code="" description=""/>
|
|
|
|
|
|
2009-12-31 13:59:04 +01:00
|
|
|
<!-- Criterion satisfaction of incorrect type. -->
|
|
|
|
|
<machine code="m2" name="m2-name" description="m2-desc">
|
|
|
|
|
<criterion-satisfaction-list>
|
|
|
|
|
<criterion-satisfaction
|
2009-12-31 13:49:24 +01:00
|
|
|
criterion-type-name="WORK_RELATIONSHIP"
|
|
|
|
|
criterion-name="hiredResourceWorkingRelationship"
|
2009-12-31 13:59:04 +01:00
|
|
|
start-date="2009-01-01"
|
|
|
|
|
finish-date=""/>
|
|
|
|
|
</criterion-satisfaction-list>
|
|
|
|
|
</machine>
|
|
|
|
|
|
2010-01-05 20:01:25 +01:00
|
|
|
<!-- Another machine is being imported with the same code. -->
|
|
|
|
|
<machine code="m1" name="m3-name" description="m3-desc"/>
|
|
|
|
|
|
2010-01-05 20:01:26 +01:00
|
|
|
<!-- OK or not OK depending on the existence of "CalendarTest". -->
|
|
|
|
|
<machine code="m4" name="m4-name" description="m4-desc"
|
|
|
|
|
calendar-name="CalendarTest"/>
|
|
|
|
|
|
2009-12-22 19:23:38 +01:00
|
|
|
<!-- *** Workers *** -->
|
2009-12-31 13:59:04 +01:00
|
|
|
|
2009-12-22 19:23:38 +01:00
|
|
|
<!-- OK -->
|
2010-01-05 20:01:26 +01:00
|
|
|
<worker first-name="w1-firstName" surname="w1-surname" nif="w1-nif">
|
2009-12-23 09:22:51 +01:00
|
|
|
<criterion-satisfaction-list>
|
|
|
|
|
<criterion-satisfaction
|
2010-01-05 20:01:26 +01:00
|
|
|
criterion-type-name="WORK_RELATIONSHIP"
|
|
|
|
|
criterion-name="hiredResourceWorkingRelationship"
|
2009-12-23 09:22:51 +01:00
|
|
|
start-date="2009-01-01"
|
|
|
|
|
finish-date=""/>
|
|
|
|
|
<criterion-satisfaction
|
|
|
|
|
criterion-type-name="LEAVE"
|
|
|
|
|
criterion-name="paternityLeave"
|
|
|
|
|
start-date="2009-12-24"
|
|
|
|
|
finish-date="2009-12-25"/>
|
|
|
|
|
</criterion-satisfaction-list>
|
|
|
|
|
</worker>
|
2009-12-31 13:59:04 +01:00
|
|
|
|
2009-12-22 19:23:38 +01:00
|
|
|
<!-- Missing first name, surname, and nif. -->
|
2009-12-30 10:44:40 +01:00
|
|
|
<worker first-name="" nif=""/>
|
2009-12-22 19:23:38 +01:00
|
|
|
|
2009-12-30 15:26:50 +01:00
|
|
|
<!-- Missing start date in criterion satisfaction. -->
|
2010-01-05 20:01:26 +01:00
|
|
|
<worker first-name="w2-firstName" surname="w2-surname" nif="w2-nif">
|
2009-12-30 15:26:50 +01:00
|
|
|
<criterion-satisfaction-list>
|
|
|
|
|
<criterion-satisfaction
|
|
|
|
|
criterion-type-name="LEAVE"
|
|
|
|
|
criterion-name="paternityLeave"
|
|
|
|
|
finish-date="2009-12-25"/>
|
|
|
|
|
</criterion-satisfaction-list>
|
|
|
|
|
</worker>
|
|
|
|
|
|
2009-12-31 13:49:24 +01:00
|
|
|
<!-- Non-existent criterion type. -->
|
2010-01-05 20:01:26 +01:00
|
|
|
<worker first-name="w3-firstName" surname="w3-surname" nif="w3-nif">
|
2009-12-31 13:49:24 +01:00
|
|
|
<criterion-satisfaction-list>
|
|
|
|
|
<criterion-satisfaction
|
|
|
|
|
criterion-type-name="WORK_RELATIONSHIP_XXX"
|
|
|
|
|
criterion-name="hiredResourceWorkingRelationship"
|
|
|
|
|
start-date="2009-01-01"
|
|
|
|
|
finish-date=""/>
|
|
|
|
|
</criterion-satisfaction-list>
|
|
|
|
|
</worker>
|
|
|
|
|
|
|
|
|
|
<!-- Non-existent criterion. -->
|
2010-01-05 20:01:26 +01:00
|
|
|
<worker first-name="w4-firstName" surname="w4-surname" nif="w4-nif">
|
2009-12-31 13:49:24 +01:00
|
|
|
<criterion-satisfaction-list>
|
|
|
|
|
<criterion-satisfaction
|
|
|
|
|
criterion-type-name="WORK_RELATIONSHIP"
|
|
|
|
|
criterion-name="hiredResourceWorkingRelationshipXXX"
|
|
|
|
|
start-date="2009-01-01"
|
|
|
|
|
finish-date=""/>
|
|
|
|
|
</criterion-satisfaction-list>
|
|
|
|
|
</worker>
|
|
|
|
|
|
|
|
|
|
<!-- Criterion not specified. -->
|
2010-01-05 20:01:26 +01:00
|
|
|
<worker first-name="w5-firstName" surname="w5-surname" nif="w5-nif">
|
2009-12-31 13:49:24 +01:00
|
|
|
<criterion-satisfaction-list>
|
|
|
|
|
<criterion-satisfaction
|
|
|
|
|
criterion-type-name="WORK_RELATIONSHIP"
|
|
|
|
|
start-date="2009-01-01"
|
|
|
|
|
finish-date=""/>
|
|
|
|
|
</criterion-satisfaction-list>
|
|
|
|
|
</worker>
|
|
|
|
|
|
|
|
|
|
<!-- Criterion type not specified. -->
|
2010-01-05 20:01:26 +01:00
|
|
|
<worker first-name="w6-firstName" surname="w6-surname" nif="w6-nif">
|
2009-12-31 13:49:24 +01:00
|
|
|
<criterion-satisfaction-list>
|
|
|
|
|
<criterion-satisfaction
|
|
|
|
|
criterion-name="hiredResourceWorkingRelationship"
|
|
|
|
|
start-date="2009-01-01"
|
|
|
|
|
finish-date=""/>
|
|
|
|
|
</criterion-satisfaction-list>
|
|
|
|
|
</worker>
|
|
|
|
|
|
2010-01-05 20:01:25 +01:00
|
|
|
<!-- Another worker is being imported with the same first name, surname,
|
|
|
|
|
and nif. -->
|
|
|
|
|
<worker first-name="w1-firstName" surname="w1-surname" nif="w1-nif"/>
|
|
|
|
|
|
2010-01-05 20:01:26 +01:00
|
|
|
<!-- OK or not OK depending on the existence of "CalendarTest". -->
|
|
|
|
|
<worker first-name="w8-firstName" surname="w8-surname" nif="w8-nif"
|
|
|
|
|
calendar-name="CalendarTest" />
|
|
|
|
|
|
2009-12-22 19:23:38 +01:00
|
|
|
</resource-list>
|