Show/Hide Toolbars

Inserts or creates an involved party record (associated with a project/matter). Often, an involved will be created and added to a project record at the same time as the project creation. This example assumes a project has already been created.

Code Snippet

protected InvolvedRepository involvedRepository;

String uniqueKey = Repository.insertInvolved(involved);

private void createInvolved() {

InvolvedCreate involved = new InvolvedCreate();

//the following are required fields

//in the following line, "DINV" is the unique code of the Involved object definition, which is a child of the related Dispute (project) object definition

involved.setEntityTypeUniqueKey("DINV");

//in the following line, "DISP_2008" is the existing dispute record unique key

involved.setProjectUniqueKey("DISP_2008");

//in the following line, "CONT_5497" corresponds to the unique key of the contact record for the person you are adding as the involved to a project

involved.setContactUniqueKey("CONT_5497");

involved.setActive(true);

Category cat = new Category();

//the next two lines identify a category and then add the category to the involved record; this category corresponds to the involved party's default role

cat.setUniqueKey("DINV_MNGR");

involved.getCategories().add(cat);

return involved;

}