Author: hansbak
Date: Wed Jul 6 02:48:10 2011 New Revision: 1143245 URL: http://svn.apache.org/viewvc?rev=1143245&view=rev Log: remove scrum conversion services from older versions Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml ofbiz/trunk/specialpurpose/scrum/servicedef/services.xml Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml?rev=1143245&r1=1143244&r2=1143245&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml Wed Jul 6 02:48:10 2011 @@ -1679,96 +1679,6 @@ result-name="projectId" /> </simple-method> - <simple-method method-name="convertScrumWorkEffortStatus" - short-description="Convert Scrum WorkEffort Status"> - <entity-condition entity-name="WorkEffort" list="workEfforts"> - <condition-list combine="and"> - <condition-expr field-name="currentStatusId" - operator="equals" from-field="parameters.oldStatusId" /> - <condition-expr field-name="workEffortTypeId" - operator="equals" from-field="parameters.workEffortTypeId" /> - </condition-list> - </entity-condition> - <iterate entry="workEffort" list="workEfforts"> - <set field="workEffort.currentStatusId" from-field="parameters.newStatusId" /> - <store-value value-field="workEffort" /> - </iterate> - </simple-method> - <simple-method method-name="convertScrumWorkEffortPartyAssignmentStatus" - short-description="Convert Scrum WorkEffort Party Assignment Status"> - <entity-condition entity-name="WorkEffortPartyAssignment" - list="workEffortPartyAssignments"> - <condition-list combine="and"> - <condition-expr field-name="statusId" operator="equals" - from-field="parameters.oldStatusId" /> - <condition-list combine="or"> - <condition-expr field-name="roleTypeId" operator="equals" - value="PRODUCT_OWNER" /> - <condition-expr field-name="roleTypeId" operator="equals" - value="SCRUM_MASTER" /> - <condition-expr field-name="roleTypeId" operator="equals" - value="SCRUM_TEAM" /> - <condition-expr field-name="roleTypeId" operator="equals" - value="SCRUM_MEMBER" /> - </condition-list> - </condition-list> - </entity-condition> - <iterate entry="workEffortPartyAssignment" list="workEffortPartyAssignments"> - <entity-and entity-name="WorkEffort" list="workEfforts"> - <field-map field-name="workEffortId" - from-field="workEffortPartyAssignment.workEffortId" /> - <field-map field-name="workEffortTypeId" from-field="parameters.workEffortTypeId" /> - </entity-and> - <if-not-empty field="workEfforts"> - <set field="workEffortPartyAssignment.statusId" from-field="parameters.newStatusId" /> - <store-value value-field="workEffortPartyAssignment" /> - </if-not-empty> - </iterate> - </simple-method> - <simple-method method-name="upgradeScrumR425" - short-description="Upgrade Scrum Revision 425"> - <!-- upgrade task status --> - <set field="workEffortTypeIds[+0]" value="SCRUM_TASK_IMPL" /> - <set field="workEffortTypeIds[+0]" value="SCRUM_TASK_ERROR" /> - <set field="workEffortTypeIds[+0]" value="SCRUM_TASK_INST" /> - <set field="workEffortTypeIds[+0]" value="SCRUM_TASK_TEST" /> - <loop field="i" count="${groovy: workEffortTypeIds.size()}"> - <set field="parameters.workEffortTypeId" from-field="workEffortTypeIds[i]" /> - <log level="info" - message="========= upgrade Scrum task status for workEffortTypeId = ${parameters.workEffortTypeId}" /> - <set field="parameters.oldStatusId" value="PTS_CREATED" /> - <set field="parameters.newStatusId" value="STS_CREATED" /> - <call-simple-method method-name="convertScrumWorkEffortStatus" /> - - <set field="parameters.oldStatusId" value="PTS_COMPLETED" /> - <set field="parameters.newStatusId" value="STS_COMPLETED" /> - <call-simple-method method-name="convertScrumWorkEffortStatus" /> - </loop> - <!-- upgrade task assign status --> - <loop field="i" count="${groovy: workEffortTypeIds.size()}"> - <set field="parameters.workEffortTypeId" from-field="workEffortTypeIds[i]" /> - <log level="info" - message="========= upgrade Scrum task assign status for workEffortTypeId = ${parameters.workEffortTypeId}" /> - <set field="parameters.oldStatusId" value="PRTYASGN_ASSIGNED" /> - <set field="parameters.newStatusId" value="SCAS_ASSIGNED" /> - <call-simple-method method-name="convertScrumWorkEffortPartyAssignmentStatus" /> - - <set field="parameters.oldStatusId" value="PRTYASGN_UNASSIGNED" /> - <set field="parameters.newStatusId" value="SCAS_UNASSIGNED" /> - <call-simple-method method-name="convertScrumWorkEffortPartyAssignmentStatus" /> - </loop> - - <!-- upgrade project status --> - <log level="info" - message="========= upgrade Scrum Project status for workEffortTypeId = SCRUM_PROJECT" /> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT" /> - <set field="parameters.oldStatusId" value="PRJ_ACTIVE" /> - <set field="parameters.newStatusId" value="SPJ_ACTIVE" /> - <call-simple-method method-name="convertScrumWorkEffortStatus" /> - <set field="parameters.oldStatusId" value="PRJ_CLOSED" /> - <set field="parameters.newStatusId" value="SPJ_CLOSED" /> - <call-simple-method method-name="convertScrumWorkEffortStatus" /> - </simple-method> <simple-method method-name="getScrumTaskInfo" short-description="Get Task Info and others related to task"> <entity-one entity-name="WorkEffort" value-field="task"> @@ -1793,26 +1703,6 @@ </if-compare> <field-to-result field="planHours" result-name="planHours" /> </simple-method> - <simple-method method-name="upgradeScrumR445" - short-description=""> - <entity-condition entity-name="CustRequest" list="custRequests"> - <condition-list combine="and"> - <condition-expr field-name="custRequestTypeId" - operator="equals" value="RF_PROD_BACKLOG" /> - <condition-expr field-name="reason" operator="not-equals" - from-field="nullField" /> - </condition-list> - </entity-condition> - <iterate entry="custRequest" list="custRequests"> - <set field="custRequest.description" from-field="custRequest.reason" /> - <set field="custRequest.reason" from-field="nullField" /> - <log level="info" - message="========= move reason to description : custRequestId # ${custRequest.custRequestId}" /> - <store-value value-field="custRequest" /> - </iterate> - </simple-method> - - <simple-method method-name="checkSprintStatus" short-description=""> <entity-condition entity-name="WorkEffort" list="sprintList"> @@ -2030,106 +1920,6 @@ </calculate> </iterate> </simple-method> - <simple-method method-name="cleanProductBacklogItems" short-description="Clean product backlog items"> - <!-- get all product backlog items of product order by sequenceNum --> - <entity-condition list="custRequestAndCustRequestItems" entity-name="CustRequestAndCustRequestItem"> - <condition-list combine="and"> - <condition-expr field-name="productId" from-field="parameters.productId" /> - <condition-expr field-name="custRequestTypeId" value="RF_PROD_BACKLOG" /> - <condition-expr field-name="statusId" operator="not-equals" value="CRQ_CANCELLED" /> - </condition-list> - </entity-condition> - </simple-method> - - <simple-method method-name="upgradeScrumR637" - short-description=""> - <entity-condition entity-name="ProductBacklog" list="openBacklogs"> - <condition-expr field-name="custRequestTypeId" value="RF_PROD_BACKLOG" /> - </entity-condition> - <entity-condition entity-name="ProductBacklog" list="implementBacklogs"> - <condition-list combine="and"> - <condition-expr field-name="custRequestTypeId" value="RF_PROD_BACKLOG" /> - <condition-expr field-name="workEffortTypeId" value="SCRUM_SPRINT" /> - </condition-list> - </entity-condition> - <log level="always" - message="==========>>> Open Backlogs::${groovy:openBacklogs.size()}" /> - <iterate entry="openBacklog" list="openBacklogs"> - <entity-one value-field="custRequest" entity-name="CustRequest"> - <field-map field-name="custRequestId" from-field="openBacklog.custRequestId" /> - </entity-one> - <set field="custRequest.custRequestName" value="Product Backlog# ${openBacklog.custRequestId}" /> - <set field="custRequest.statusId" value="CRQ_ACCEPTED" /> - <store-value value-field="custRequest" /> - </iterate> - <log level="always" - message="==========>>> Implement Backlogs::${groovy:implementBacklogs.size()}" /> - <iterate entry="implementBacklog" list="implementBacklogs"> - <entity-one value-field="custRequest" entity-name="CustRequest"> - <field-map field-name="custRequestId" from-field="implementBacklog.custRequestId" /> - </entity-one> - <set field="custRequest.custRequestName" value="Product Backlog# ${implementBacklog.custRequestId}" /> - <entity-count count-field="countTaskComplete" - entity-name="ProjectSprintBacklogAndTask"> - <condition-list combine="and"> - <condition-expr field-name="custRequestId" - from-field="implementBacklog.custRequestId" /> - <condition-expr field-name="sprintTypeId" value="SCRUM_SPRINT" /> - <condition-expr field-name="taskCurrentStatusId" - operator="equals" value="STS_COMPLETED" /> - <condition-list combine="or"> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_ERROR" /> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_IMPL" /> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_INST" /> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_TEST" /> - </condition-list> - </condition-list> - </entity-count> - <entity-count count-field="countTask" entity-name="ProjectSprintBacklogAndTask"> - <condition-list combine="and"> - <condition-expr field-name="custRequestId" - from-field="implementBacklog.custRequestId" /> - <condition-expr field-name="sprintTypeId" value="SCRUM_SPRINT" /> - <condition-list combine="or"> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_ERROR" /> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_IMPL" /> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_INST" /> - <condition-expr field-name="taskTypeId" operator="equals" - value="SCRUM_TASK_TEST" /> - </condition-list> - </condition-list> - </entity-count> - <log level="always" - message="==========>>> Implement Backlog:: ${implementBacklog.custRequestId}" /> - <log level="always" message="==========>>> Sprint Backlog tasks:: ${countTask}" /> - <log level="always" - message="==========>>> Sprint Backlog tasks are completed:: ${countTaskComplete}" /> - <if> - <condition> - <and> - <if-compare-field operator="equals" field="countTaskComplete" - to-field="countTask" /> - <if-compare operator="not-equals" value="0" field="countTask" /> - </and> - </condition> - <then> - <set field="custRequest.statusId" value="CRQ_COMPLETED" /> - </then> - <else> - <set field="custRequest.statusId" value="CRQ_REVIEWED" /> - </else> - </if> - <store-value value-field="custRequest" /> - </iterate> - </simple-method> - <simple-method method-name="autoCompleteBacklog" short-description="Auto Complete Backlog"> <entity-and list="sprintBacklogs" entity-name="CustRequestWorkEffort"> @@ -2653,74 +2443,6 @@ </if-not-empty> </simple-method> - <simple-method method-name="upgradeScrumR801" short-description="Set backlog item to complete when all task in there is completed."> - <entity-condition entity-name="CustRequest" list="implementBacklogs"> - <condition-list combine="and"> - <condition-list combine="or"> - <condition-expr field-name="custRequestTypeId" value="RF_PROD_BACKLOG" /> - <condition-expr field-name="custRequestTypeId" value="RF_SCRUM_MEETINGS" /> - </condition-list> - <condition-expr field-name="statusId" operator="not-equals" value="CRQ_COMPLETED"/> - </condition-list> - </entity-condition> - <iterate entry="implementBacklog" list="implementBacklogs"> - <entity-count count-field="countTaskComplete" - entity-name="ProjectSprintBacklogAndTask"> - <condition-list combine="and"> - <condition-expr field-name="custRequestId" from-field="implementBacklog.custRequestId" /> - <condition-expr field-name="sprintTypeId" value="SCRUM_SPRINT" /> - <condition-expr field-name="taskCurrentStatusId" - operator="equals" value="STS_COMPLETED" /> - <condition-list combine="or"> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_ERROR" /> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_IMPL" /> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_INST" /> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_TEST" /> - </condition-list> - </condition-list> - </entity-count> - <entity-count count-field="countTask" entity-name="ProjectSprintBacklogAndTask"> - <condition-list combine="and"> - <condition-expr field-name="custRequestId" - from-field="implementBacklog.custRequestId" /> - <condition-expr field-name="sprintTypeId" value="SCRUM_SPRINT" /> - <condition-list combine="or"> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_ERROR" /> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_IMPL" /> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_INST" /> - <condition-expr field-name="taskTypeId" operator="equals" value="SCRUM_TASK_TEST" /> - </condition-list> - </condition-list> - </entity-count> - <log level="always" message="==========>>> Sprint Backlog tasks:: ${countTask}" /> - <log level="always" message="==========>>> Sprint Backlog tasks are completed:: ${countTaskComplete}" /> - <if> - <condition> - <and> - <if-compare-field operator="equals" field="countTaskComplete" to-field="countTask" /> - <if-compare operator="not-equals" value="0" field="countTask" /> - </and> - </condition> - <then> - <!-- Set backlog to complete when all task in there is completed --> - <if-compare operator="not-equals" value="CRQ_COMPLETED" field="implementBacklogt.statusId"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="system"/> - </entity-one> - <if-empty field="implementBacklog.custRequestName"> - <set field="implementBacklog.custRequestName" value="Product Backlog # ${custRequest.custRequestId}"/> - </if-empty> - <set field="implementBacklog.userLogin" value="userLogin"/> - <set field="implementBacklog.statusId" value="CRQ_COMPLETED"/> - <set-service-fields service-name="updateCustRequest" to-map="updateCustRequest" map="implementBacklog"/> - <call-service service-name="updateCustRequest" in-map-name="updateCustRequest"/> - <log level="info" message="=========== >>> Completed Sprint Backlog # ${custRequestId}"/> - </if-compare> - </then> - </if> - </iterate> - </simple-method> - <simple-method method-name="getPartyLeaveHoursForDate" short-description="Get party leave hours for date."> <entity-one value-field="emplLeaveMap" entity-name="EmplLeave"> <field-map field-name="partyId" from-field="parameters.partyId"/> @@ -2738,213 +2460,4 @@ </else> </if-not-empty> </simple-method> - - <simple-method method-name="upgradeScrumR1027" short-description="all securitygroups and permissions start with 'scrum'"> - <!-- SecurityPermission--> - <!-- Product Backlog--> - <set field="securityPermissionList[+0]" value="PRODUCT_BACKLOG_VIEW"/> - <set field="securityPermissionList[+0]" value="PRODUCT_BACKLOG_CREATE"/> - <set field="securityPermissionList[+0]" value="PRODUCT_BACKLOG_UPDATE"/> - <set field="securityPermissionList[+0]" value="PRODUCT_BACKLOG_DELETE"/> - <set field="securityPermissionList[+0]" value="PRODUCT_BACKLOG_ADMIN"/> - <!-- Sprint --> - <set field="securityPermissionList[+0]" value="SPRINT_VIEW"/> - <set field="securityPermissionList[+0]" value="SPRINT_CREATE"/> - <set field="securityPermissionList[+0]" value="SPRINT_UPDATE"/> - <set field="securityPermissionList[+0]" value="SPRINT_DELETE"/> - <!-- Daily Meeting Minute --> - <set field="securityPermissionList[+0]" value="DAILY_VIEW"/> - <set field="securityPermissionList[+0]" value="DAILY_CREATE"/> - <set field="securityPermissionList[+0]" value="DAILY_UPDATE"/> - <set field="securityPermissionList[+0]" value="DAILY_DELETE"/> - <!-- Member --> - <set field="securityPermissionList[+0]" value="MEMBER_VIEW"/> - <set field="securityPermissionList[+0]" value="MEMBER_CREATE"/> - <set field="securityPermissionList[+0]" value="MEMBER_UPDATE"/> - <set field="securityPermissionList[+0]" value="MEMBER_DELETE"/> - <set field="securityPermissionList[+0]" value="MEMBER_ROLE_UPDATE"/> - <!-- SecurityGroup --> - <set field="securityGroupList[+0]" value="PRODUCT_OWNER"/> - <set field="securityGroupList[+0]" value="STAKEHOLDER"/> - <set field="securityGroupList[+0]" value="SCRUMBILLING"/> - - <log level="always" message=":========== Make sure that we have already loaded 'seed' data before run this service.==========:"></log> - <!-- Create UserLoginSecurityGroup of old transaction section --> - <loop field="i" count="${groovy: securityGroupList.size()}"> - <entity-and list="userLoginSecurityGroupList" entity-name="UserLoginSecurityGroup"> - <field-map field-name="groupId" from-field="securityGroupList[i]"/> - </entity-and> - <if-not-empty field="userLoginSecurityGroupList"> - <iterate entry="userLoginSecurityGroupMap" list="userLoginSecurityGroupList"> - <if-compare field="securityGroupList[i]" operator="equals" value="SCRUMBILLING"> - <set field="userLoginSecurityGroupMap.groupId" value="SCRUM_BILLING"/> - <else> - <set field="newGroupId" value="SCRUM_${securityGroupList[i]}"/> - <set field="userLoginSecurityGroupMap.groupId" from-field="newGroupId"/> - </else> - </if-compare> - <log level="always" - message="==========>>> Old userLoginSecurityGroup::${securityGroupList[i]} ==New userLoginSecurityGroup :: ${userLoginSecurityGroupMap.groupId}" /> - <create-value value-field="userLoginSecurityGroupMap"/> - </iterate> - </if-not-empty> - </loop> - <!-- remove securityPermission section also remove relate too --> - <loop field="j" count="${groovy: securityPermissionList.size()}"> - <entity-one value-field="securityPermissionMap" entity-name="SecurityPermission"> - <field-map field-name="permissionId" from-field="securityPermissionList[j]"/> - </entity-one> - <log level="always" message="==========>>> Remove old SecurityPermission::${securityPermissionMap}" /> - <if-not-empty field="securityPermissionMap"> - <remove-related relation-name="SecurityGroupPermission" value-field="securityPermissionMap"/> - <remove-value value-field="securityPermissionMap"/> - </if-not-empty> - </loop> - <!-- remove SecurityGroup section also remove relate too--> - <loop field="k" count="${groovy: securityGroupList.size()}"> - <entity-one value-field="securityGroupMap" entity-name="SecurityGroup"> - <field-map field-name="groupId" from-field="securityGroupList[k]"/> - </entity-one> - <log level="always" message="==========>>> Remove old SecurityGroup::${securityGroupMap}" /> - <if-not-empty field="securityGroupMap"> - <remove-related relation-name="UserLoginSecurityGroup" value-field="securityGroupMap"/> - <remove-related relation-name="SecurityGroupPermission" value-field="securityGroupMap"/> - <remove-value value-field="securityGroupMap"/> - </if-not-empty> - </loop> - </simple-method> - - <simple-method method-name="upgradeScrumR1320" short-description="update old url of objectInfo field"> - <entity-and list="workEffortResourceList" entity-name="WorkEffortAndContentDataResource"> - <field-map field-name="workEffortContentTypeId" value="TASK_SUB_INFO"/> - </entity-and> - <if-not-empty field="workEffortResourceList"> - <iterate entry="workEffortResourceMap" list="workEffortResourceList"> - <set field="dataResourceId" from-field="workEffortResourceMap.dataResourceId"/> - <entity-one value-field="dataResourceMap" entity-name="DataResource"/> - <set field="oldObjectInfo" from-field="dataResourceMap.objectInfo"/> - <set field="newObjectInfo" value="${groovy:oldObjectInfo - 'http://orion.antwebsystems.com/public/svnInformation.py?repository=https://orion.antwebsystems.com/svn/'}"/> - <set field="dataResourceMap.objectInfo" from-field="newObjectInfo"/> - <log level="always" message="==========>>> Update ObjectInfo in DataResource ::${newObjectInfo}" /> - <store-value value-field="dataResourceMap"/> - </iterate> - </if-not-empty> - </simple-method> - <simple-method method-name="upgradeScrumR1476" short-description="update old data in entity CustRequestItem"> - <entity-and list="custAndCustItemList" entity-name="CustRequestAndCustRequestItem"> - <field-map field-name="productId" from-field="parameters.productId"/> - <select-field field-name="custRequestId"/> - </entity-and> - <log level="always" message="==========>>> Total backlog to change ::${groovy:custAndCustItemList.size()}" /> - <if-not-empty field="custAndCustItemList"> - <iterate entry="custAndCustItemMap" list="custAndCustItemList"> - <entity-and list="custItemList" entity-name="CustRequestItem"> - <field-map field-name="custRequestId" from-field="custAndCustItemMap.custRequestId"/> - </entity-and> - <log level="always" message="==========>>> Update CustRequest Id ::${custAndCustItemMap.custRequestId}" /> - <if-not-empty field="custItemList"> - <iterate entry="custItemMap" list="custItemList"> - <set field="custItemMap.statusId" from-field="custAndCustItemMap.statusId"/> - <set field="custItemMap.sequenceNum" from-field="custAndCustItemMap.sequenceNum"/> - <set field="custItemMap.productId" from-field="parameters.productId"/> - <set field="custItemMap.description" from-field="custAndCustItemMap.description"/> - <store-value value-field="custItemMap"/> - </iterate> - </if-not-empty> - </iterate> - </if-not-empty> - </simple-method> - - <simple-method method-name="createWorkEffortConvert" short-description="Create Workeffort Convert" > - <make-value value-field="newEntity" entity-name="WorkEffortConvert"/> - <if-empty field="parameters.workEffortConvertId"> - <sequenced-id sequence-name="WorkEffortConvert" field="newEntity.workEffortConvertId"/> - <else> - <check-id field="parameters.workEffortConvertId"/> - <check-errors/> - <set field="newEntity.workEffortConvertId" from-field="parameters.workEffortConvertId"/> - </else> - </if-empty> - <set-nonpk-fields map="parameters" value-field="newEntity"/> - - <now-timestamp field="nowTimestamp"/> - <set from-field="nowTimestamp" field="newEntity.lastStatusUpdate"/> - <set from-field="nowTimestamp" field="newEntity.lastModifiedDate"/> - <set from-field="nowTimestamp" field="newEntity.createdDate"/> - <set field="newEntity.revisionNumber" value="1" type="Long"/> - <set from-field="userLogin.userLoginId" field="newEntity.lastModifiedByUserLogin"/> - <set from-field="userLogin.userLoginId" field="newEntity.createdByUserLogin"/> - <create-value value-field="newEntity"/> - </simple-method> - <simple-method method-name="upgradeScrumR1547" short-description="Copy the old data of workeffort enity to existing entity name WorkEffortGoodStandard"> - <!-- copy the old data of WorkEffort to workeffortConvert entity --> - <entity-condition list="workEffortList" entity-name="WorkEffort"> - <condition-expr field-name="productId" operator="not-equals" value=""/> - </entity-condition> - <if-not-empty field="workEffortList"> - <entity-condition list="workEffortConvertList" entity-name="WorkEffortConvert"> - <condition-expr field-name="productId" operator="not-equals" value=""/> - </entity-condition> - <if-empty field="workEffortConvertList"> - <iterate entry="workEffortMap" list="workEffortList"> - <make-value value-field="newEntity" entity-name="WorkEffortConvert"/> - <map-to-map map="workEffortMap" to-map="newEntity"/> - <if-empty field="newEntity.workEffortConvertId"> - <sequenced-id sequence-name="WorkEffortConvert" field="newEntity.workEffortConvertId"/> - </if-empty> - <create-value value-field="newEntity"/> - </iterate> - </if-empty> - </if-not-empty> - <now-timestamp field="now"/> - <!-- Create the data from workeffortConvert entity to WorkEffortGoodStandard--> - <entity-condition list="workEffConList" entity-name="WorkEffortConvert"> - <condition-expr field-name="productId" operator="not-equals" value=""/> - </entity-condition> - <if-not-empty field="workEffConList"> - <iterate entry="workEffConMap" list="workEffConList"> - <entity-and list="workEfGSLists" entity-name="WorkEffortGoodStandard"> - <field-map field-name="workEffortId" from-field="workEffConMap.workEffortId"/> - <field-map field-name="productId" from-field="workEffConMap.productId"/> - <field-map field-name="workEffortGoodStdTypeId" value="SCRUM_PRO_WORKEFF"/> - </entity-and> - <if-empty field="workEfGSLists"> - <log level="always" message="==========>>> Create the WorkEffortGoodStandard for project workEffortId:${workEffConMap.workEffortId} and productId:${workEffConMap.productId}" /> - <make-value value-field="goodStandardMap" entity-name="WorkEffortGoodStandard"/> - <set field="goodStandardMap.workEffortId" from-field="workEffConMap.workEffortId"/> - <set field="goodStandardMap.productId" from-field="workEffConMap.productId"/> - <set field="goodStandardMap.workEffortGoodStdTypeId" value="SCRUM_PRO_WORKEFF"/> - <set field="goodStandardMap.fromDate" from-field="now"/> - <set field="goodStandardMap.statusId" value="WEGS_CREATED"/> - <create-value value-field="goodStandardMap"/> - </if-empty> - </iterate> - <!-- remove the productId from workeffort --> - <if-not-empty field="workEffortList"> - <iterate entry="workEffortMap" list="workEffortList"> - <clear-field field="workEffortMap.productId"/> - <store-value value-field="workEffortMap"/> - </iterate> - </if-not-empty> - </if-not-empty> - <!-- convert the default task of the systems --> - <entity-and list="systemDefaultTaskList" entity-name="WorkEffort"> - <field-map field-name="workEffortPurposeTypeId" value="SCRUM_DEFAULT_TASK"/> - <field-map field-name="productId" from-field="nullField"/> - <field-map field-name="workEffortParentId" from-field="nullField"/> - </entity-and> - <if-not-empty field="systemDefaultTaskList"> - <iterate entry="systemDefaultTask" list="systemDefaultTaskList"> - <entity-and list="workEfGSList" entity-name="WorkEffortGoodStandard"> - <field-map field-name="workEffortId" from-field="systemDefaultTask.workEffortId"/> - <field-map field-name="workEffortGoodStdTypeId" value="SCRUM_PRO_WORKEFF"/> - </entity-and> - <if-empty field="workEfGSList"> - <log level="always" message="==========>>> Update the system default task:${systemDefaultTask.workEffortId}" /> - <set field="systemDefaultTask.workEffortPurposeTypeId" value="SYSTEM_DEFAULT_TASK"/> - <store-value value-field="systemDefaultTask"/> - </if-empty> - </iterate> - </if-not-empty> - </simple-method> </simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/servicedef/services.xml?rev=1143245&r1=1143244&r2=1143245&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/servicedef/services.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/servicedef/services.xml Wed Jul 6 02:48:10 2011 @@ -178,15 +178,6 @@ <auto-attributes include="pk" mode="IN" optional="false"/> <attribute name="hours" type="Double" mode="OUT" optional="true"/> </service> - - <!-- upgrade conversion programs --> - <service name="upgradeScrumR425" engine="simple" invoke="upgradeScrumR425" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" auth="true"> - </service> - <service name="upgradeScrumR445" engine="simple" invoke="upgradeScrumR445" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" auth="true"> - </service> - <service name="createDefaultTask" engine="simple" invoke="createDefaultTask" auth="true" location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml"> <attribute name="custRequestId" type="String" mode="IN" optional="false"/> @@ -194,7 +185,6 @@ <service name="checkSprintStatus" engine="simple" auth="true" location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="checkSprintStatus"> </service> - <service name="checkScrumPlanHour" engine="simple" auth="true" location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="checkScrumPlanHour"> <attribute name="workEffortId" type="String" mode="IN" optional="true"/> @@ -206,13 +196,6 @@ location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="reOrderProductBacklogItemSequenceNumber"> <attribute name="productId" type="String" mode="IN" optional="false"/> </service> - <service name="cleanProductBacklogItems" engine="simple" auth="true" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="cleanProductBacklogItems"> - <attribute name="productId" type="String" mode="IN" optional="false"/> - </service> - <service name="upgradeScrumR637" engine="simple" auth="true" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="upgradeScrumR637"> - </service> <service name="autoCompleteBacklog" engine="simple" auth="true" location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="autoCompleteBacklog"> <attribute name="workEffortId" mode="IN" type="String" optional="false"/> @@ -266,10 +249,6 @@ <attribute name="repositoryRoot" type="String" mode="IN" optional="false"/> </service> - <service name="upgradeScrumR801" engine="simple" auth="true" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="upgradeScrumR801"> - </service> - <service name="linkToProduct" engine="java" auth="true" location="org.ofbiz.scrum.ScrumServices" invoke="linkToProduct"> <description>check when a comunication event is created if the subject contains the PD# string, if so @@ -277,27 +256,4 @@ </description> <attribute name="communicationEventId" type="String" mode="IN" optional="false"/> </service> - - <service name="upgradeScrumR1027" engine="simple" auth="true" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="upgradeScrumR1027"> - </service> - - <service name="upgradeScrumR1320" engine="simple" auth="true" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="upgradeScrumR1320"> - </service> - <service name="upgradeScrumR1476" engine="simple" auth="true" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="upgradeScrumR1476"> - <attribute name="productId" type="String" mode="IN" optional="false"/> - </service> - - <service name="createWorkEffortConvert" engine="simple" auth="true" default-entity-name="WorkEffortConvert" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="createWorkEffortConvert"> - <auto-attributes include="pk" mode="IN" optional="true"/> - <auto-attributes include="nonpk" mode="IN" optional="true"/> - </service> - <service name="upgradeScrumR1547" engine="simple" auth="true" - location="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml" invoke="upgradeScrumR1547"> - <description> The upgradeScrumR1547 service is using for convert the old data with the productId problem of - workeffort entity in scrum by copy the old data to existing entity name "WorkEffortGoodStandard" </description> - </service> </services> |
Free forum by Nabble | Edit this page |