Author: swapnilmmane
Date: Sat May 25 09:25:56 2019
New Revision: 1859931
URL:
http://svn.apache.org/viewvc?rev=1859931&view=revLog:
Fixed: Error on deleting the survey associated with the task
(OFBIZ-7594)
The following error is generated on deleting the survey associated with the task.
Error calling event: org.apache.ofbiz.webapp.event.EventHandlerException: Problems getting the service model (Cannot locate service by name (deleteWorkEffortSurveyAppl))
On exploration I found, In the refactoring work done under OFBIZ-8408, the deleteWorkEffortSurveyAppl service was removed.
Added the deleteWorkEffortSurveyAppl service, previously it was in written in the simple engine, converted it to entity-auto.
Modified:
ofbiz/ofbiz-framework/trunk/applications/workeffort/servicedef/services.xml
Modified: ofbiz/ofbiz-framework/trunk/applications/workeffort/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/ofbiz-framework/trunk/applications/workeffort/servicedef/services.xml?rev=1859931&r1=1859930&r2=1859931&view=diff==============================================================================
--- ofbiz/ofbiz-framework/trunk/applications/workeffort/servicedef/services.xml (original)
+++ ofbiz/ofbiz-framework/trunk/applications/workeffort/servicedef/services.xml Sat May 25 09:25:56 2019
@@ -1738,4 +1738,10 @@ under the License.
</type-validate>
</override>
</service>
+
+ <service name="deleteWorkEffortSurveyAppl" default-entity-name="WorkEffortSurveyAppl" engine="entity-auto" invoke="expire" auth="true">
+ <description>Expire the WorkEffort Survey</description>
+ <permission-service service-name="workEffortGenericPermission" main-action="DELETE"/>
+ <auto-attributes include="pk" mode="IN" optional="false"/>
+ </service>
</services>