You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@hop.apache.org by "rdubois-mel (via GitHub)" <gi...@apache.org> on 2024/12/11 09:37:57 UTC

[D] Optional GET parameter on webservice call (hop)

GitHub user rdubois-mel created a discussion: Optional GET parameter on webservice call

Hi,

I use Hop webservices to launch pipelines as explained in the documentation (https://hop.apache.org/manual/latest/hop-server/web-service.html). It works very well. 
But I would like to pass optional GET parameters to my pipeline.

Currently I use the "Get variables" transform, but if I do not pass my parameter or if I pass an empty string as an integer, I get a Serialization error.
I have tested all possible types and still encounter an error.

Is there a way around this? or another way to retrieve GET parameters?

Thanks !
Remi

GitHub link: https://github.com/apache/hop/discussions/4696

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Optional GET parameter on webservice call (hop)

Posted by "rdubois-mel (via GitHub)" <gi...@apache.org>.
GitHub user rdubois-mel closed the discussion with a comment: Optional GET parameter on webservice call

Actually, I set my variable to String format, and I do some testing afterwards in a Script action, and it works :)

GitHub link: https://github.com/apache/hop/discussions/4696#discussioncomment-12039754

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org


Re: [D] Optional GET parameter on webservice call (hop)

Posted by "rdubois-mel (via GitHub)" <gi...@apache.org>.
GitHub user rdubois-mel closed a discussion: Optional GET parameter on webservice call

Hi,

I use Hop webservices to launch pipelines as explained in the documentation (https://hop.apache.org/manual/latest/hop-server/web-service.html). It works very well. 
But I would like to pass optional GET parameters to my pipeline.

Currently I use the "Get variables" transform, but if I do not pass my parameter or if I pass an empty string as an integer, I get a Serialization error.
I have tested all possible types and still encounter an error.

Is there a way around this? or another way to retrieve GET parameters?

Thanks !
Remi

GitHub link: https://github.com/apache/hop/discussions/4696

----
This is an automatically sent email for users@hop.apache.org.
To unsubscribe, please send an email to: users-unsubscribe@hop.apache.org