<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
-->
<entity-engine-xml>

    <!-- Project Statuses -->
    <StatusType description="Project" hasTable="N" parentTypeId="WORK_EFFORT_STATUS" statusTypeId="WE_PROJECT_STATUS"/>
    <StatusItem description="Planning" sequenceId="01" statusCode="PLANNING" statusId="WEPR_PLANNING" statusTypeId="WE_PROJECT_STATUS"/>
    <StatusItem description="In Progress" sequenceId="02" statusCode="IN_PROGRESS" statusId="WEPR_IN_PROGRESS" statusTypeId="WE_PROJECT_STATUS"/>
    <StatusItem description="Complete" sequenceId="05" statusCode="COMPLETE" statusId="WEPR_COMPLETE" statusTypeId="WE_PROJECT_STATUS"/>
    <StatusItem description="On Hold" sequenceId="98" statusCode="ON_HOLD" statusId="WEPR_ON_HOLD" statusTypeId="WE_PROJECT_STATUS"/>
    <StatusItem description="Cancelled" sequenceId="99" statusCode="CANCELLED" statusId="WEPR_CANCELLED" statusTypeId="WE_PROJECT_STATUS"/>
    <StatusValidChange statusId="WEPR_PLANNING" statusIdTo="WEPR_IN_PROGRESS" transitionName="Begin Project"/>
    <StatusValidChange statusId="WEPR_IN_PROGRESS" statusIdTo="WEPR_ON_HOLD" transitionName="Begin Project"/>
    <StatusValidChange statusId="WEPR_ON_HOLD" statusIdTo="WEPR_IN_PROGRESS" transitionName="Resume Project"/>
    <StatusValidChange statusId="WEPR_IN_PROGRESS" statusIdTo="WEPR_CANCELLED" transitionName="Cancel"/>
    <StatusValidChange statusId="WEPR_ON_HOLD" statusIdTo="WEPR_CANCELLED" transitionName="Cancel"/>

    <!-- Status items for WorkEffortPartyAssignment.statusId -->
    <StatusType description="Party Assignment Status" hasTable="N" parentTypeId="WORK_EFFORT_STATUS" statusTypeId="PRTYASGN_STATUS"/>
    <StatusItem description="Offered" sequenceId="01" statusCode="OFFERED" statusId="PRTYASGN_OFFERED" statusTypeId="PRTYASGN_STATUS"/>
    <StatusItem description="Assigned" sequenceId="02" statusCode="ASSIGNED" statusId="PRTYASGN_ASSIGNED" statusTypeId="PRTYASGN_STATUS"/>
    <StatusItem description="Unassigned" sequenceId="03" statusCode="UNASSIGNED" statusId="PRTYASGN_UNASSIGNED" statusTypeId="PRTYASGN_STATUS"/>

    <!-- Status items for WorkEffortPartyAssignment.availabilityStatusId -->
    <StatusType description="Work Effort Party Availability" hasTable="N" statusTypeId="WEPA_AVAILABILITY"/>
    <StatusItem description="Available" sequenceId="01" statusCode="AVAILABLE" statusId="WEPA_AV_AVAILABLE" statusTypeId="WEPA_AVAILABILITY"/>
    <StatusItem description="Busy" sequenceId="02" statusCode="BUSY" statusId="WEPA_AV_BUSY" statusTypeId="WEPA_AVAILABILITY"/>
    <StatusItem description="Away" sequenceId="03" statusCode="AWAY" statusId="WEPA_AV_AWAY" statusTypeId="WEPA_AVAILABILITY"/>

    <!-- Status items for WorkEffortFixedAssetAssign.statusId -->
    <StatusType description="Fixed Asset Assignment Status" hasTable="N" statusTypeId="FA_ASGN_STATUS"/>
    <StatusItem description="Requested" sequenceId="01" statusCode="REQUESTED" statusId="FA_ASGN_REQUESTED" statusTypeId="FA_ASGN_STATUS"/>
    <StatusItem description="Assigned" sequenceId="02" statusCode="ASSIGNED" statusId="FA_ASGN_ASSIGNED" statusTypeId="FA_ASGN_STATUS"/>
    <StatusItem description="Request Denied" sequenceId="03" statusCode="DENIED" statusId="FA_ASGN_DENIED" statusTypeId="FA_ASGN_STATUS"/>

    <!-- Status items for WorkEffortFixedAssetAssign.availabilityStatusId -->
    <StatusType description="Work Effort Fixed Asset Availability" hasTable="N" statusTypeId="WEFA_AVAILABILITY"/>
    <StatusItem description="Available" sequenceId="01" statusCode="AVAILABLE" statusId="WEFA_AVAILABLE" statusTypeId="WEFA_AVAILABILITY"/>
    <StatusItem description="In Use" sequenceId="02" statusCode="BUSY" statusId="WEFA_IN_USE" statusTypeId="WEFA_AVAILABILITY"/>

    <WorkEffortContentType workEffortContentTypeId="PROJECT_DISCUSSION" description="Project Discussion"/>
    <WorkEffortContentType workEffortContentTypeId="PROJECT_UPDATE" description="Project Update"/>
    <WorkEffortContentType workEffortContentTypeId="PROJECT_SPEC" description="Project Specification"/>

    <WorkEffortPurposeType description="Project" workEffortPurposeTypeId="WEPT_PROJECT"/>
    <WorkEffortPurposeType description="Phase" workEffortPurposeTypeId="WEPT_PHASE"/>

    <WorkEffortType description="Workflow Process" hasTable="N" workEffortTypeId="WORK_FLOW"/>
    <WorkEffortType description="Workflow Activity" hasTable="N" workEffortTypeId="ACTIVITY"/>
    <WorkEffortType description="Task" hasTable="N" workEffortTypeId="TASK"/>
    <WorkEffortType description="Milestone" hasTable="N" workEffortTypeId="MILESTONE"/>
    <WorkEffortType description="Available" hasTable="N" workEffortTypeId="AVAILABLE"/>
    <WorkEffortType description="Program" hasTable="N" workEffortTypeId="PROGRAM"/>
    <WorkEffortType description="Project" hasTable="N" workEffortTypeId="PROJECT"/>
    <WorkEffortType description="Project Phase" hasTable="N" workEffortTypeId="PHASE"/>

    <!-- WorkEffort Email Template Settings -->
    <EmailTemplateSetting emailTemplateSettingId="WEFF_EVENT_REMINDER" fromAddress="ofbiztest@example.com" subject="Event Reminder"
            bodyScreenLocation="component://workeffort/widget/WorkEffortScreens.xml#WorkEffortEventReminderEmail"/>
</entity-engine-xml>
