Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Context macros not being set
sectyn
I am running a Rapidminer process from a Java program and passing the input as an URL. Is there any log which shows the URL that is coming to the RapidMiner process? Using Print to Console, it looks like the process context macros are not being set. Is it because the URL has not been passed to the process? My RapidMiner studio is version 9.9, but AI Hub is version 9.8. Will this have an impact on not getting the URL parameters in my context parameters?
Find more posts tagged with
AI Studio
Accepted answers
All comments
BalazsBaranyRM
Hi,
can you describe the setup in more detail?
Is the Java program calling a web service on the AI Hub? Are you using GET or POST? Are the mappings of URL parameters to process macros active in the service definition?
The service is not supposed to pass the URL to the process, but it will set the context macros if the URL parameter mapping is defined correctly.
Usually if your process is accepted by the AI Hub, it is executed correctly even if it was created with a newer Studio.
Regards,
Balázs
sectyn
The Java process is calling a web service on the AI Hub. But I am not using a GET or POST.
BalazsBaranyRM
If you are calling a URL, you are normally using GET. You usually know if not.
Is the URL something like
http://aihub/service
or like
http://aihub/service?param1=value¶m2=value2
?
The second way is the correct way to pass parameters to the service when using GET.
Have you specified the parameter to macro mapping in the service definition?
sectyn
It is specified like this:
http://aihub/service?param1=value¶m2=value2
Image shows how the parameter to macro mapping is done
web_service.JPG
BalazsBaranyRM
OK, this seems to be correct.
If the parameters (the names are case sensitive) really aren't arriving in the process as macros, you should open a support case.
Regards,
Balázs
sectyn
Finally figured out what the problem was: one of the parameters had a JSON string which was not formatted correctly - had to do with overriding the double quotes in JSON with a '\'.
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups