You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ofbiz.apache.org by de...@apache.org on 2025/06/30 10:34:37 UTC
(ofbiz-framework) branch trunk updated: Replaced deprecared service call with suggested service (OFBIZ-13272)
This is an automated email from the ASF dual-hosted git repository.
deepak pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ofbiz-framework.git
The following commit(s) were added to refs/heads/trunk by this push:
new e76478a93e Replaced deprecared service call with suggested service (OFBIZ-13272)
e76478a93e is described below
commit e76478a93e3852e038bae1dc896f9d90447a7c31
Author: Deepak Dixit <de...@apache.org>
AuthorDate: Mon Jun 30 16:00:48 2025 +0530
Replaced deprecared service call with suggested service (OFBIZ-13272)
---
.../java/org/apache/ofbiz/content/content/UploadContentAndImage.java | 2 +-
applications/humanres/minilang/HumanResServices.xml | 4 ++--
.../org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy | 2 +-
applications/workeffort/minilang/test/WorkEffortTests.xml | 2 +-
.../workeffort/widget/workeffort/WorkEffortPartyAssignCpd.xml | 4 ++--
5 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/applications/content/src/main/java/org/apache/ofbiz/content/content/UploadContentAndImage.java b/applications/content/src/main/java/org/apache/ofbiz/content/content/UploadContentAndImage.java
index a19ff3fceb..fbb58ef45b 100644
--- a/applications/content/src/main/java/org/apache/ofbiz/content/content/UploadContentAndImage.java
+++ b/applications/content/src/main/java/org/apache/ofbiz/content/content/UploadContentAndImage.java
@@ -553,7 +553,7 @@ public class UploadContentAndImage {
resequenceContext.put("contentIdTo", caContentIdTo);
resequenceContext.put("userLogin", userLogin);
try {
- ftlResults = dispatcher.runSync("resequence", resequenceContext);
+ ftlResults = dispatcher.runSync("resequenceContentAssocChildren", resequenceContext);
if (ServiceUtil.isError(ftlResults)) {
String errorMessage = ServiceUtil.getErrorMessage(ftlResults);
request.setAttribute("_ERROR_MESSAGE_", errorMessage);
diff --git a/applications/humanres/minilang/HumanResServices.xml b/applications/humanres/minilang/HumanResServices.xml
index 57af824c2e..f4b5d58200 100644
--- a/applications/humanres/minilang/HumanResServices.xml
+++ b/applications/humanres/minilang/HumanResServices.xml
@@ -148,9 +148,9 @@
<now-timestamp field="lookedUpValue.thruDate"/>
<store-value value-field="lookedUpValue"/>
- <set-service-fields service-name="deleteRateAmount" map="parameters" to-map="delRateAmount"/>
+ <set-service-fields service-name="expireRateAmount" map="parameters" to-map="delRateAmount"/>
<set field="delRateAmount.fromDate" from-field="parameters.rateAmountFromDate"/>
- <call-service service-name="deleteRateAmount" in-map-name="delRateAmount"/>
+ <call-service service-name="expireRateAmount" in-map-name="delRateAmount"/>
</simple-method>
<simple-method method-name="getCurrentPartyEmploymentData" short-description="Get all current employment information for a certain partyId">
<!-- party benefit -->
diff --git a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy
index e359ba0165..acf439ecda 100644
--- a/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy
+++ b/applications/order/src/main/groovy/org/apache/ofbiz/order/order/test/OrderRequirementTests.groovy
@@ -93,7 +93,7 @@ class OrderRequirementTests extends OFBizTestCase {
workEffortId: '9000',
userLogin: userLogin
]
- Map serviceResult = dispatcher.runSync('addRequirementTask', serviceCtx)
+ Map serviceResult = dispatcher.runSync('createWorkRequirementFulfillment', serviceCtx)
assert ServiceUtil.isSuccess(serviceResult)
}
diff --git a/applications/workeffort/minilang/test/WorkEffortTests.xml b/applications/workeffort/minilang/test/WorkEffortTests.xml
index 8ebed2f7a3..36c4ca4fd7 100644
--- a/applications/workeffort/minilang/test/WorkEffortTests.xml
+++ b/applications/workeffort/minilang/test/WorkEffortTests.xml
@@ -170,7 +170,7 @@ under the License.
<field-map field-name="userLoginId" value="system"/>
</entity-one>
<set field="serviceCtx.userLogin" from-field="userLogin"/>
- <call-service service-name="deletePartyToWorkEffortAssignment" in-map-name="serviceCtx"/>
+ <call-service service-name="expireWorkEffortPartyAssignment" in-map-name="serviceCtx"/>
<entity-one entity-name="WorkEffortPartyAssignment" value-field="workEffortPartyAssignment">
<field-map field-name="partyId" value="TestParty"/>
<field-map field-name="roleTypeId" value="ACCOUNTANT"/>
diff --git a/applications/workeffort/widget/workeffort/WorkEffortPartyAssignCpd.xml b/applications/workeffort/widget/workeffort/WorkEffortPartyAssignCpd.xml
index a1bf96c862..f06f1f67cc 100644
--- a/applications/workeffort/widget/workeffort/WorkEffortPartyAssignCpd.xml
+++ b/applications/workeffort/widget/workeffort/WorkEffortPartyAssignCpd.xml
@@ -41,7 +41,7 @@ under the License.
</sc:request-map>
<sc:request-map uri="WorkEffortPartyAssigns/delete">
<sc:security https="true" auth="true"/>
- <sc:event type="service" invoke="deletePartyToWorkEffortAssignment"/>
+ <sc:event type="service" invoke="expireWorkEffortPartyAssignment"/>
<sc:response name="success" type="request" value="json"/>
<sc:response name="error" type="request" value="json"/>
</sc:request-map>
@@ -109,7 +109,7 @@ under the License.
<wm:if-empty field="thruDate"/>
</wm:condition>
<wm:link target="WorkEffortPartyAssigns/delete" request-confirmation="true">
- <wm:auto-parameters-service service-name="deletePartyToWorkEffortAssignment"/>
+ <wm:auto-parameters-service service-name="expireWorkEffortPartyAssignment"/>
<wm:set-callback area-target="WorkEffortPartyAssigns/List"/>
</wm:link>
</wm:menu-item>