Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: P4ADEV-1421-fdr-create-temporal-activity #19

Merged
merged 14 commits into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
14 commits
Select commit Hold shift + click to select a range
482dc18
feat: P4ADEV-1421-fdr-create-temporal-activity added FdR WF activitie…
marcomatteuccieng Nov 22, 2024
948bbe9
feat: P4ADEV-1421-fdr-create-temporal-activity added FdR WF activitie…
marcomatteuccieng Nov 22, 2024
f5b40db
Update src/main/java/it/gov/pagopa/payhub/activities/activity/fdr/FdR…
marcomatteuccieng Nov 22, 2024
6de9402
Update src/main/java/it/gov/pagopa/payhub/activities/activity/fdr/FdR…
marcomatteuccieng Nov 22, 2024
c37b509
Update src/main/java/it/gov/pagopa/payhub/activities/activity/fdr/FdR…
marcomatteuccieng Nov 22, 2024
1217bef
Update src/main/java/it/gov/pagopa/payhub/activities/activity/fdr/Sen…
marcomatteuccieng Nov 22, 2024
c4cf648
Update src/main/java/it/gov/pagopa/payhub/activities/activity/fdr/Upd…
marcomatteuccieng Nov 22, 2024
d737888
Update src/main/java/it/gov/pagopa/payhub/activities/activity/fdr/Upd…
marcomatteuccieng Nov 22, 2024
e79da5b
Update src/main/java/it/gov/pagopa/payhub/activities/dto/fdr/FdRInges…
marcomatteuccieng Nov 22, 2024
aa6d8d7
Update src/main/java/it/gov/pagopa/payhub/activities/dto/fdr/FdRInges…
marcomatteuccieng Nov 22, 2024
44b7e37
Update src/main/java/it/gov/pagopa/payhub/activities/dto/fdr/FdRInges…
marcomatteuccieng Nov 22, 2024
69ed5ae
feat:P4ADEV-1421-fdr-create-temporal-activity added FdR WF activities…
marcomatteuccieng Nov 22, 2024
1426422
Update src/main/java/it/gov/pagopa/payhub/activities/activity/fdr/Sen…
marcomatteuccieng Nov 22, 2024
87c697e
feat:P4ADEV-1421-fdr-create-temporal-activity added FdR WF activities…
marcomatteuccieng Nov 22, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package it.gov.pagopa.payhub.activities.activity.fdr;
import it.gov.pagopa.payhub.activities.dto.fdr.FdRIngestionActivityResult;

/**
* Interface for the FdRIngestionActivity.
* Defines methods for processing files based on an IngestionFlow ID.
*/
public interface FdRIngestionActivity {

/**
* Processes a file based on the provided IngestionFlow ID.
*
* @param ingestionFlowId the unique identifier related to the file to process.
* @return {@link FdRIngestionActivityResult} containing the list of IUFs and status.
*/
FdRIngestionActivityResult processFile(String ingestionFlowId);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package it.gov.pagopa.payhub.activities.activity.fdr;

/**
* Interface for SendEmailIngestionFlowActivity.
* Sends an email based on the status of a processed file identified by its IngestionFlow ID.
*/
public interface SendEmailIngestionFlowActivity {

/**
* Sends an email based on the process result of the given file ingestionFlow ID.
*
* @param ingestionFlowId the unique identifier of the IngestionFlow record related to the imported file.
* @param success true if the process succeeded, false otherwise.
* @return true if the email was sent successfully, false otherwise.
*/
boolean sendEmail(String ingestionFlowId, boolean success);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package it.gov.pagopa.payhub.activities.activity.fdr;

/**
* Interface for the UpdateIngestionFlowStatusActivity.
* Updates the status of a IngestionFlow record identified by the provided ID.
*/
public interface UpdateIngestionFlowStatusActivity {

/**
* Updates the status of the IngestionFlow record corresponding to the given ID.
*
* @param id the unique identifier of the record to update.
* @param newStatus the new status to set.
* @return true if the update was successful, false otherwise.
*/
boolean updateStatus(String id, String newStatus);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package it.gov.pagopa.payhub.activities.dto.fdr;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
* DTO for the FdRIngestionResponse, representing the result of file processing.
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class FdRIngestionActivityResult {
/** List of extracted IUFs */
private List<String> iufs;
/** Success flag for the operation */
private boolean success;
}