Author: hansbak
Date: Sun Feb 10 19:31:51 2008 New Revision: 620396 URL: http://svn.apache.org/viewvc?rev=620396&view=rev Log: Jira issue 1629 add task to project error solved Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml Modified: ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml?rev=620396&r1=620395&r2=620396&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/script/org/ofbiz/project/ProjectServices.xml Sun Feb 10 19:31:51 2008 @@ -33,6 +33,9 @@ <simple-method method-name="createProjectTask" short-description="Create a project task and optionally assign"> <!-- create task --> + <if-empty field-name="parameters.statusId"> + <set field="parameters.statusId" value="PTS_CREATED"/> + </if-empty> <call-simple-method method-name="createWorkEffort" xml-resource="component://workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml"/> <!-- optionally assign to party --> <if-not-empty field-name="parameters.partyId"> Modified: ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml?rev=620396&r1=620395&r2=620396&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml (original) +++ ofbiz/trunk/specialpurpose/projectmgr/servicedef/services.xml Sun Feb 10 19:31:51 2008 @@ -103,18 +103,19 @@ <permission-service service-name="projectMgrPermission" main-action="CREATE"/> <implements service="interfaceWorkEffort"/> <auto-attributes mode="INOUT" include="pk" optional="true"/> - <attribute name="partyId" type="String" mode="IN" optional="false"/> - <attribute name="roleTypeId" type="String" mode="IN" optional="false"/> - <attribute name="statusId" type="String" mode="IN" optional="false"/> + <attribute name="partyId" type="String" mode="IN" optional="true"/> + <attribute name="roleTypeId" type="String" mode="IN" optional="true"/> + <attribute name="statusId" type="String" mode="IN" optional="true"/> <attribute name="fromDate" type="Timestamp" mode="OUT" optional="true"/> <attribute name="quickAssignPartyId" type="String" mode="IN" optional="true"/> <attribute name="requirementId" type="String" mode="IN" optional="true"/> <attribute name="communicationEventId" type="String" mode="IN" optional="true"/> <attribute name="skillTypeId" type="String" mode="IN" optional="true"/> - <attribute name="estimatedHours" type="String" mode="IN"/> + <attribute name="estimatedHours" type="String" mode="IN" optional="true"/> <override name="workEffortTypeId" optional="false"/> <override name="workEffortName" optional="false"/> <override name="currentStatusId" optional="false"/> + <override name="workEffortParentId" optional="false"/> </service> <service name="copyProject" engine="simple" |
Free forum by Nabble | Edit this page |