You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The SendHttpRequest activity in Elsa Workflows currently supports handling responses with content types such as JSON, text, XML, HTML, etc.
Enhancement Proposal
To expand the functionality of the SendHttpRequest activity, we propose adding a content parser that can handle file downloads from a provided URL. This parser should process the returned file from the response and provide it as output of the activity.
Acceptance Criteria
Content Parser Implementation: Develop a content parser capable of detecting and processing file responses.
File Output Handling: Ensure the downloaded file is provided as output of the SendHttpRequest activity.
This enhancement will allow users to seamlessly integrate file downloading capabilities into their workflows, broadening the scope and utility of the SendHttpRequest activity.
The text was updated successfully, but these errors were encountered:
To implement the proposed enhancement for the SendHttpRequest activity in Elsa Workflows, you would need to follow these steps:
Extend the Activity: Create a new activity or extend the existing SendHttpRequest activity to include a content parser that can handle file downloads.
Detect Content Type: Implement logic to detect the content type of the response. If the content type indicates a file (e.g., application/octet-stream, application/pdf, etc.), proceed with handling the file download.
Process File Response: Develop the content parser to handle the file response. This may involve creating a temporary file on the server or streaming the content directly to a byte array.
Provide File Output: Modify the activity's output to include the downloaded file. This could be the path to the temporary file, a byte array, or a stream.
Update Documentation: Update the activity's documentation to reflect the new file handling capabilities and provide examples of how to use the new feature.
Test the Enhancement: Thoroughly test the new functionality to ensure it handles various file types and content disposition scenarios correctly.
Submit for Review: Once the enhancement is implemented and tested, submit it for review and integration into the Elsa Workflows project.
Please note that this is a high-level overview, and actual implementation details may vary based on the Elsa Workflows architecture and coding standards.
Current Behavior
The
SendHttpRequest
activity in Elsa Workflows currently supports handling responses with content types such as JSON, text, XML, HTML, etc.Enhancement Proposal
To expand the functionality of the
SendHttpRequest
activity, we propose adding a content parser that can handle file downloads from a provided URL. This parser should process the returned file from the response and provide it as output of the activity.Acceptance Criteria
SendHttpRequest
activity.This enhancement will allow users to seamlessly integrate file downloading capabilities into their workflows, broadening the scope and utility of the
SendHttpRequest
activity.The text was updated successfully, but these errors were encountered: