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

Retrigger endpoint returns "process step is not eligible" error #111

Closed
thackerronak opened this issue Oct 9, 2024 · 2 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@thackerronak
Copy link

Description:
The retrigger endpoint (POST /api/dim/process/wallet/{processId}/retrigger?processStepTypeId={processStepTypeId}) is returning an error stating that the process step is not eligible to run, even though the step has failed and needs to be retriggered.


Steps to Reproduce:

  1. Obtain an active processId and failed processStepTypeId via the following endpoint:

    POST /api/dim/process/setup?bpn={bpn}&companyName={companyName}
    
    • bpn: Business Partner Number of the company.
    • companyName: Name of the company.

    In the response, you will get the processId and the processStepTypeId of the TODO step.

Screenshot 2024-10-09 at 2 49 22 PM

  1. Use the retrigger endpoint to attempt retriggering the failed step:
    POST /api/dim/process/wallet/{processId}/retrigger?processStepTypeId={processStepTypeId}
    
    • processId: b56f4766-26e0-4751-b342-de9677198e90
    • processStepTypeId: RETRIGGER_CREATE_STATUS_LIST

Screenshot 2024-10-09 at 2 49 42 PM

  1. Observe the error in the response:
    Error: processId b56f4766-26e0-4751-b342-de9677198e90, process step CREATE_STATUS_LIST is not eligible to run
    

Expected Behavior:

The retrigger endpoint should allow retriggering a failed process step, especially when the step has been marked as failed in the setup process.

Actual Behavior:

The API returns an error stating that the step is "not eligible to run."

@Phil91 Phil91 self-assigned this Nov 11, 2024
@Phil91 Phil91 added the bug Something isn't working label Nov 11, 2024
Phil91 added a commit that referenced this issue Nov 11, 2024
@Phil91 Phil91 mentioned this issue Nov 11, 2024
6 tasks
Phil91 added a commit that referenced this issue Nov 13, 2024
Refs: #111
Reviewed-By: Evelyn Gurschler <[email protected]>
@Phil91
Copy link
Collaborator

Phil91 commented Nov 13, 2024

@thackerronak could you please verify that the fix solves your bug and if so close the issue? :)

@thackerronak
Copy link
Author

@thackerronak could you please verify that the fix solves your bug and if so close the issue? :)

Tested and working fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants