From 8096e9634cb02cec19e87c1a553daab6f912601a Mon Sep 17 00:00:00 2001 From: Hans Bakker Date: Tue, 22 Jul 2008 00:52:16 +0000 Subject: [PATCH] first version of issue OFBIZ-1886: add statusId field to communicationrole, more testing and additions will follow git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@678605 13f79535-47bb-0310-9956-ffa450edef68 --- .../ofbiz/content/email/EmailServices.java | 5 +++- applications/party/data/PartyTypeData.xml | 8 +++++ applications/party/entitydef/entitymodel.xml | 7 ++++- .../CommunicationEventServices.xml | 29 ++++++++++++++----- applications/party/servicedef/services.xml | 7 +++++ 5 files changed, 46 insertions(+), 10 deletions(-) diff --git a/applications/content/src/org/ofbiz/content/email/EmailServices.java b/applications/content/src/org/ofbiz/content/email/EmailServices.java index 6cc16fa507..24373bd5bf 100644 --- a/applications/content/src/org/ofbiz/content/email/EmailServices.java +++ b/applications/content/src/org/ofbiz/content/email/EmailServices.java @@ -995,7 +995,10 @@ public class EmailServices { if (partyRole == null) { dispatcher.runSync("createPartyRole", UtilMisc.toMap("partyId", partyId, "roleTypeId", roleTypeId, "userLogin", userLogin)); } - Map input = UtilMisc.toMap("communicationEventId", communicationEventId, "partyId", partyId, "roleTypeId", roleTypeId, "userLogin", userLogin, "contactMechId", (String) result.get("contactMechId")); + Map input = UtilMisc.toMap("communicationEventId", communicationEventId, + "partyId", partyId, "roleTypeId", roleTypeId, "userLogin", userLogin, + "contactMechId", (String) result.get("contactMechId"), + "statusId", "COM_ROLE_CREATED"); dispatcher.runSync("createCommunicationEventRole", input); } } diff --git a/applications/party/data/PartyTypeData.xml b/applications/party/data/PartyTypeData.xml index f07b06420c..661947d68c 100644 --- a/applications/party/data/PartyTypeData.xml +++ b/applications/party/data/PartyTypeData.xml @@ -326,6 +326,14 @@ under the License. + + + + + + + + diff --git a/applications/party/entitydef/entitymodel.xml b/applications/party/entitydef/entitymodel.xml index 4e1a949500..6c4a9cdbe7 100644 --- a/applications/party/entitydef/entitymodel.xml +++ b/applications/party/entitydef/entitymodel.xml @@ -703,8 +703,9 @@ under the License. - + + @@ -807,6 +808,7 @@ under the License. For additional communication event participants this represents the contactMechId of the ContactMech used. + @@ -826,6 +828,9 @@ under the License. + + + + - @@ -160,16 +160,29 @@ under the License. - - - - - - - + + + + + + + + + + + + + + + + + + + diff --git a/applications/party/servicedef/services.xml b/applications/party/servicedef/services.xml index c604462328..58a001db2b 100644 --- a/applications/party/servicedef/services.xml +++ b/applications/party/servicedef/services.xml @@ -696,6 +696,13 @@ under the License. + + Update a Communication Event Role + + + + Remove a Communication Event Role