Imposta il predecessore in MS Project usando Java

Questa breve guida spiega come impostare il predecessore in MS Project usando Java. Fornisce dettagli su come configurare l’IDE, un elenco di passaggi e codice di esempio per aggiungere predecessori in MS Project usando Java. You will learn various options to customize the output project at the end of this article.

Steps to set predecessors in MS Project using Java.

  1. Set up the environment to use Aspose.Tasks for Java to work with predecessors.
  2. Apply a license in the application and create a new project
  3. Set the project’s start date and name, and add some example tasks.
  4. Set the durations tasks’ in days and link all tasks using the Finish‑Start link type.
  5. Aggiungi un ritardo di un giorno tra l’attività 3 e l’attività 4 per la dimostrazione
  6. Save the final project after adding predecessors and successors.
  7. Print all activity links with all details of predecessors and successors.

Questi passaggi descrivono il processo di impostazione del task predecessore usando Java. Apply the product license to save the output as MPP, create a new project file, set the project’s start date, time, and name, and add sample tasks to the project. Set the duration of each task, link all tasks with finish‑to‑start dependencies, add a test lag between two tasks, and save the project to disk.

Code for Predecessor and Successor in MS Project using Java

This code demonstrates the process of adding a predecessor in Microsoft Project using Java. È possibile utilizzare la funzionalità del percorso critico per identificare e evidenziare le attività che possono influire sulla data di fine del progetto se la durata dell’attività varia. Set activity constraints to control the project schedule; for example, the activity must start on a specific date, or the activity should start as soon as possible.

This tutorial taught us how to work with predecessor and successor activities. To add a milestone to a project, see the article Add Milestone in MS Project using Java.

 Italiano