Siebel Life Sciences Guide > Configuring Siebel Life Sciences > Configuring Personalized Content Delivery >

Optimize Detailing Plan Method


Signature of the Optimize Detailing Plan method is as follows:

ErrCode OptimizeDetailingPlan (const CCFPropertySet& inputArgs, CCFPropertySet& outputArgs)

The input parameters to this method are sent as an input property set (inputArgs).

The output of this method is an xml string, set in the output property set (outputArgs) with property name as RecommendedMsgPlans. For example:

outputArgs.SetProperty("RecommendedMsgPlans",<xmlstring>);

The xml string in the output property set should be in the following format:

<OptimizedDetailingPlan>

<ListOfRecommendedMessagingPlans>

<MessagingPlan>

<Id>

</Id>

<SequenceNumber>

</SequenceNumber>

<OfferId>

</OfferId>

<ObjectiveId>

</ObjectiveId>

<SegmentCode>

</SegmentCode>

</MessagingPlan>

<MessagingPlan>

<Id>

</Id>

<SequenceNumber>

</SequenceNumber>

<OfferId>

</OfferId>

<ObjectiveId>

</ObjectiveId>

<SegmentCode>

</SegmentCode>

</MessagingPlan>

</ListOfRecommendedMessagingPlans>

</OptimizedDetailingPlan>

You can use your own logic to identify recommended messaging plans by overriding the OptimizeDetailingPlan method using a script.

To override OptimizeDetailingPlan

  1. In Siebel tools query for LS PCD Service.
  2. Right click LS PCD Service, and click Edit Server scripts.
  3. Update the Service_PreInvokeMethod function to override logic for OptimizeDetailingPlan as shown:

function Service_PreInvokeMethod (MethodName, Inputs, Outputs)

{

if(MethodName == "OptimizeDetailingPlan")

{

........

User logic to identify Recommended messaging plans...

set output property set...

.....

return (CancelOperation);

}

else

return (ContinueOperation);

}

Siebel Life Sciences Guide Copyright © 2008, Oracle. All rights reserved.