Is it possible to run the other protocol over a component that uses a script(ex. Java (on Server), Perl (on Server), VBScript (on Server), Python (on Server))?
Is it possible to run the other protocol over a component that uses a script(ex. Java (on Server), Perl (on Server), VBScript (on Server), Python (on Server))?
Hi Taishi. In the example I sent, $streamdata is a Pipeline Pilot-specific query parameter that tells the protocol which results you want. Another useful option might be $streamfile if you want to stream the content of a file result back. I suggest that you take a look at the RESTful Web Services Guide document in the Pipeline Pilot help system for developers (shown highlighted in the left pane in the attached screenshot). You will find all the flags described starting on page 16.
Hi Taishi. Can you explain a bit more what you want to accomplish? Do you want to launch and execute another protocol from a scripting component or do you want to run a protocol and not execute the scripting components in it?
Thank You AC.
The two choices are the former(from a scripting component).
As an image, I am thinking of something like this.(ex.in perl),
Is it possible?
If you have any ideas or advice for realizing it, we would appreciate it if you could give us a response.
slightly
use strict; use warnings; sub component{ shortcut component_A; return result of component_A; } sub onInitialize { my $context = shift; return pilot::READYFORINPUTDATA; } sub onProcess { my $context = shift; my $data = shift;<br /> my $props = $data->getProperties(); $props->define("Component_A", component()); return pilot::READYFORINPUTDATA; }<br /><br />sub onFinalize {<br /> my $context = shift;<br />} <br />Hi Taishi. You can't run a component the way you show in your Perl script snippet, you can only run another protocol using its REST endpoint. What you're trying to implement sounds a lot like the "Shortcut Component" or the "Dynamic Shortcut Component", which allows you to dynamically set the component that gets executed based on some values that are collected earlier in the protocol execution. Is there any reason you want to do this from Perl? Take a look at the components I mentioned and see if they might not be suitable for what you're trying to do.
Hi AC.
"Shortcut Component" or the "Dynamic Shortcut Component" don't seem to be able to do what they want.
Is there any reason you want to do this from Perl?
->It's not limited to perl, but it's because the process in the script (for example, a function that includes a loop) incorporates a call from another protocol.
Hi Taishi. Find attached an example of how to call a Pipeline Pilot protocol from the Perl component. As I mentioned before, you cannot call a component, you have to create a protocol and save it on the Protocols tab to be able to call it this way. I've included the target protocol I used to test this just to show that you will have to define an output on the Web Service tab in that protocol with a name that matches the one used in the calling URL (in my case it's called result, like in the attached screenshot).
Hi AC.
Thank you for the very useful and innovative protocol.
Thanks to this protocol, it is now possible to call the protocol from components that use scripts (Perl and others).
I have an additional question about this Protocol, could you please teach me?
-I have a query called "? $ Streamdata =" that I use to receive properties, is this specific to Pipeline Pilot?
-What else do you think the query might be?
Regards.
Hi AC.
Thank you very much.
All my doubts have been resolved.