Help needed urgently

Hi Experts,
I need to develope a service that will take the input from Tn directly and gives the contact details of the partner(e-mail addresses).This service should be invoked before envelope process.can any one help me how to create this.Thanks in advance

hi saritha,

     first define a TN documenttype and then define ProcessingRule and in processing Rule u need to call a perticular service which u want to invoke and that u will find that service in developer in developer u need to call tn service to find the parther specific details ... i think this will help u ... anyforther queries feel free

Saritha,

The service input should be bizdoc(wm.tn.doc:bizdocEnvelope)and this will be in the pipeline when TN routes the document to your service.
So extract the bizdoc/content (bytes)using bytesToString and further down based on your DocumentType parse the string to ISDocument and get the contact details of the partner as per your requirement.

Please try to elaborate on your process what you are trying to do and also what development you have done in your flow.

HTH,
RMG.

Hi RMG,
once say a sample 850 hits our tN we write processing rule to invoke a service known as process dos.process doc has the following flow in it

  1. get contacts of partner
    2)envelope process and…
    My requirement is i have to code the service get contacts of partners.the output of this service should be e-mail addresses of the Sender.I need these details to inform the sender if the envelope process fails.Please tell me how can i create this service.Thanks in advance.( please see screenshot in attachment )
    Saritha

    18.9 K
    sample.zip
    ""

Hi RMG,
once say a sample 850 hits our tN we write processing rule to invoke a service known as process dos.process doc has the following flow in it

  1. get contacts of partner
    2)envelope process and…
    My requirement is i have to code the service get contacts of partners.the output of this service should be e-mail addresses of the Sender.I need these details to inform the sender if the envelope process fails.Please tell me how can i create this service.Thanks in advance.( please see screenshot in attachment )
    Saritha

Hi RMG,
once say a sample 850 hits our tN we write processing rule to invoke a service known as process dos.process doc has the following flow in it

  1. get contacts of partner
    2)envelope process and…
    My requirement is i have to code the service get contacts of partners.the output of this service should be e-mail addresses of the Sender.I need these details to inform the sender if the envelope process fails.Please tell me how can i create this service.Thanks in advance.( please see screenshot in attachment )
    Saritha

Saritha,

In your sender TN profile in the ExtendedFields section use the custom extended type and set Emaillist and use this service
wm.tn.profile:getInternalID(gives output partnerID and map this to wm.tn.profile:getExtendedFields (select group=custom)or else fill the details in the Profile/Contact section like Email,Phonenumber etc…and use the same logic mentioned above.
So for this create a wrapper service which just gives output emaillist and further down in your processdoc service map emaillist to whatever your requirement needs to do.

HTH,
RMG.

Thank you very much.I will try that

RMG–"In your sender TN profile in the ExtendedFields section use the custom extended type and set Emaillist and use this service "
in my sender profile -extended field section i see edINT and UCCNET.I dont know where to add e-mail address can you please help
thanks
saritha

Saritha,

In the Enterprise profile under the ExtendedFields section look for icon on the top a icon says “Create/View Profile Fields” and click it a pop up opens with Standard/Extended then select Extended tab in the top select new icon and now in the box enter some Name=Emaillist,group=Custom and then save it.

Then go to your sender profile now the “Custom” will show up in the ExtendedField section where the EDIINT,UCCNET displays.Then click on the Custom a text box with Name Emaillist will be shown and enter the email recipients what ever you need,save it.And finally use the above mentioned flowservices to extract the Emaillist from the ExtendedFields group(Custom).

HTH,
RMG.

You might also use the Contacts tab to store e-mail address information. You can any number of contact types that you like. Then you can use the TN services to retrieve the data.

Thanks RMG and ROB,
while i am using the service getprofile.I am not get getting contact lists as an array , instead i am getting it as an objectlist.Its hard to retrieve the e-mail address from object list.any suggestions please…Thanks in advance

saritha

Saritha,

For accomplishing you need to write a javaservice for converting objectlist to stringlist and extract the data.At this moment i don’t have the sample code,if i find will upload it.

HTH,
RMG.

Thanks RMG,
Will be waiting for the code

Saritha,

Actually, all you have to do is LOOP over ‘/profile/Contact’ and the resultant contacts will appear as documents instead of objects. One of the strings inside the document will be Email.

HTH,
Dave

Saritha,

As Dave mentioned above just Loop In-Array on profile/Contact and put a map step inside the loop and extract the Contact/EmailAddress.If in the TN profile Contact tab doesn’t contain any data then the pipeline will show Contact as Objectlist with null.

So no java code needed for the above.

HTH,
RMG.

Thanks Dave, you made my day.

Thanks RMG its working