It is a very common need to clear the contents of a list or a map, especially when you are constructing a list or a map inside a loop.In LC 8.2 we have added a function to which allows you to clear the list/map contents
But for those of you using previous versions you can copy the following script and paste it in the ExecuteScript component
import java.util.*;
ArrayList list = patExecContext.getProcessDataValue(“/process_data/listOfPrincipalRef”);
((HashMap) patExecContext.getProcessDataValue(“/process_data/inputMapOfAttachments”)).clear();
System.out.println(“******Got list ,size is “+list.size());
((ArrayList) patExecContext.getProcessDataValue(“/process_data/listOfPrincipalRef”)).clear();
System.out.println(“******Got List,size is “+list.size());
Where listOfPrincipalRef is a list variable defined in your process,inputMapOfAttachments is a variable of type map defined in your process
Let me know if you have any questions
thanks
girish
Categories: Clearing List/Map
Tagged: Clearing, Contents, List, Map
Hi
This is in response to a question on the adobe forumsHow do I deadline a group task after a group member has claimed it. Unfortunately livecycle ES does not have any out of the box capability to set a deadline on a task when it is claimed.To solve the question posted on the forum, I have written a simple process which can be used to get around the limitation for now.
The following document explains the work around and also has the process and the custom component I had to write to get this working
Re Assigining Task To group
Any question please send me a email
Categories: Uncategorized
A very simple but very powerful feature of Acrobat is the ability to silently import/export data with out user intervention. To do this you will have to certify the form, the end user will need to add the person who has certified the pdf in to his list of trusted identities and also give permission to execute high privilege java scripts.
The following document explain the procedure in detail,and also has a sample pdf, xdp and test data file as file attachments.
Click here to view the document
Categories: Uncategorized
Tagged: Export Data, Form Data, Import Data