Author: hansbak
Date: Wed Dec 19 00:12:07 2007 New Revision: 605458 URL: http://svn.apache.org/viewvc?rev=605458&view=rev Log: create a workeffort and assignment with a role at the same time Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml ofbiz/trunk/applications/workeffort/servicedef/services.xml Modified: ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml?rev=605458&r1=605457&r2=605458&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml (original) +++ ofbiz/trunk/applications/workeffort/script/org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml Wed Dec 19 00:12:07 2007 @@ -18,9 +18,20 @@ under the License. --> -<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> - +<simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> + + <simple-method method-name="createWorkEffortAndPartyAssign" short-description="Create Work Effort and assign to a party with a role"> + <set-service-fields service-name="createWorkEffort" map-name="parameters" to-map-name="create"/> + <call-service service-name="createWorkEffort" in-map-name="create"> + <result-to-field result-name="workEffortId"/> + </call-service> + <set-service-fields service-name="assignPartyToWorkEffort" map-name="parameters" to-map-name="assign"/> + <set field="assign.workEffortId" from-field="workEffortId"/> + <call-service service-name="assignPartyToWorkEffort" in-map-name="assign"/> + <field-to-result field-name="workEffortId"/> + </simple-method> + <simple-method method-name="createWorkEffort" short-description="Create Work Effort"> <make-value value-name="newEntity" entity-name="WorkEffort"/> <if-empty field-name="parameters.workEffortId"> Modified: ofbiz/trunk/applications/workeffort/servicedef/services.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/applications/workeffort/servicedef/services.xml?rev=605458&r1=605457&r2=605458&view=diff ============================================================================== --- ofbiz/trunk/applications/workeffort/servicedef/services.xml (original) +++ ofbiz/trunk/applications/workeffort/servicedef/services.xml Wed Dec 19 00:12:07 2007 @@ -37,11 +37,27 @@ </auto-attributes> </service> <service name="createWorkEffort" default-entity-name="WorkEffort" engine="simple" - location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffort"> + location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffort"> <description>Create a WorkEffort Entity</description> <permission-service service-name="workEffortGenericPermission" main-action="CREATE"/> <implements service="interfaceWorkEffort"/> <auto-attributes mode="INOUT" include="pk" 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"/> + <override name="workEffortTypeId" optional="false"/> + <override name="workEffortName" optional="false"/> + <override name="currentStatusId" optional="false"/> + </service> + <service name="createWorkEffortAndPartyAssign" default-entity-name="WorkEffort" engine="simple" + location="org/ofbiz/workeffort/workeffort/WorkEffortSimpleServices.xml" invoke="createWorkEffortAndPartyAssign"> + <description>Create a WorkEffort Entity and assign to a party</description> + <permission-service service-name="workEffortGenericPermission" 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="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"/> |
Free forum by Nabble | Edit this page |