Call a connector from a web interface

493 views
Skip to first unread message

Luigi

unread,
Jun 12, 2017, 8:27:00 AM6/12/17
to Fujitsu RunMyProcess Developer Community
Hello,
I need to launch a connector(Web Service) from a Wub Interface and get the result to be showed in the same WI.

I know that it can be realized with:
- a button that sets/changes a variable
- a process launched with API listener that triggers the variable change

Is there another alternative i.e. to call a connector directly ?

Thank you.

Dipen Raval

unread,
Jun 12, 2017, 8:42:35 AM6/12/17
to suppor...@runmyprocess.com
Hi Luigi,

Can you please specify when you want to call the connector on the web interface? 

Do you want to trigger it on loading of the web interface or on some action performed on the interface or on some any other condition?


Please elaborate the scenario.


Regards,

Dipen Raval

RunMyProcess Support




--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/dec82ab2-86ed-4bf6-8bb7-f3947f05a056%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

ciche...@fatergroup.com

unread,
Jun 12, 2017, 8:57:03 AM6/12/17
to Fujitsu RunMyProcess Developer Community
On Monday, June 12, 2017 at 2:42:35 PM UTC+2, draval wrote:
> Hi Luigi,
>
>
>
> Can you please specify when you want to call the connector
> on the web interface? 
> Do you want to trigger it on loading of the web interface
> or on some action performed on the interface or on some any other condition?
>
>
>
>
> Please elaborate the scenario.
>
>
> Regards,
> Dipen Raval
> RunMyProcess Support
>
>
>
>
> On Mon, Jun 12, 2017 at 5:57 PM, Luigi <ciche...@fatergroup.com> wrote:
> Hello,
>
> I need to launch a connector(Web Service) from a Wub Interface and get the result to be showed in the same WI.
>
>
>
> I know that it can be realized with:
>
> - a button that sets/changes a variable
>
> - a process launched with API listener that triggers the variable change
>
>
>
> Is there another alternative i.e. to call a connector directly ?
>
>
>
> Thank you.
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
Hi Dipen,
I would like the user could call the connector when clicks on a button.
Then the result (a variable) could be used to "enable" (or not) another button on the same WI that would continue the process.

Is it possible ?

Thank you.

Gunjan Rajgure

unread,
Jun 12, 2017, 3:20:19 PM6/12/17
to suppor...@runmyprocess.com, Luigi Cichella
Hello Luigi,

Yes, you can launch a connector from web interface. You can do it in two way.

1. You can use CAPI to execute connector. Add connector in CAPI and make call CAPI "manually by JavaScript" by click button on web interface.
   Just go through the documentation to get an idea.
   
2. Execute JavaScript on Button click to call connector.

   for eg.
 
   var parameter1 = "value1";  // define your parameters used in query string.
   var parameter2 = "value2";
   
   var my_url ="https://your-provider-end-point/connector-url?parameter1="+ encodeURIComponent(parameter1) +"&parameter2="+ encodeURIComponent(parameter2);                // This will make your connector URL
   window.open(my_url, "mywindow");              // Calling the Connector.

Where, provider-end-point is the provider URL.
You can write JavaScript code in this way to call connector by clicking button.

Please don't hesitate to contact with us for further clarification.


Best Regards
Gunjan Rajgure
Fujitsu - RunMyProcess Support


To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

Dipen Raval

unread,
Jun 14, 2017, 4:47:15 PM6/14/17
to suppor...@runmyprocess.com, Luigi Cichella
Hi Luigi,

Good Day.

Could you please confirm that issue has been clarified?
Please don't hesitate to contact us for any further query.

Thanks & Regards,
Dipen Raval
Fujitsu - RunMyProcess Support

Luigi

unread,
Jun 16, 2017, 5:11:05 AM6/16/17
to Fujitsu RunMyProcess Developer Community, ciche...@fatergroup.com

Hi Dipen,
well I put a process in the API listener triggered by a variable change, then I created:
- a button widget to set the variable with a random number
- the variable widget

The problem is that the whole thing worked fine when I tested the triggering and the process on the launch screen.
Then I disabled the widgets in the launch screen to make them available on another screen and now the API/process is not triggered anymore, even if I can see the variable listened is changed by pushing the button.

What's wrong ?
Could you help, please ?

Luigi
> To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/32399ed0-482d-4d14-addf-1cb066640a05%40runmyprocess.com.
>
>
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
>
>
>
>
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
>
> To post to this group, send email to suppor...@runmyprocess.com.
>
> Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
>

Gunjan Rajgure

unread,
Jun 18, 2017, 9:14:02 AM6/18/17
to suppor...@runmyprocess.com, Luigi Cichella
Hello Luigi,

Can you please provide us screen shots of what you have implemented? That will be more helpful to find solution.

Please feel free to share any query with us.

Best Regards
Gunjan Rajgure
Fujitsu - RunMyProcess Support


To unsubscribe from this group and stop receiving emails from it, send an email to supportforum+unsubscribe@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

Richard Manga

unread,
Jun 18, 2017, 9:47:56 AM6/18/17
to suppor...@runmyprocess.com, Luigi Cichella
Hi Luigi,

Please, could you check if the variable you are listening is "available" on the screen where you want to trigger the connector?

Could you also check that the connector is "available" in the screen?

Finally, please check that all the variables used by the connector are also available in the screen.

If you have any other question or request, please don't hesitate to contact us.

Best Regards,

Richard



On Wed, Jun 14, 2017 at 10:47 PM, Dipen Raval <dra...@runmyprocess.com> wrote:
Hi Luigi,

Good Day.

Could you please confirm that issue has been clarified?
Please don't hesitate to contact us for any further query.

Thanks & Regards,
Dipen Raval
Fujitsu - RunMyProcess Support

Luigi

unread,
Jun 19, 2017, 6:51:37 AM6/19/17
to Fujitsu RunMyProcess Developer Community, ciche...@fatergroup.com
Hi Richard, Gunjan,
the variable listened is available on the screen as well as all variables needed.

Anyway, I found the problem as I realised that the "API listener" process has also a flag to make it available/unavailable to a specific screen...

So, now the API listener process is triggered on the required screen although there is a strange result.

Infact, the process is triggerd and completed regularly and the related message I put for the event "Completed" is showed.

Strangely, it shows ALSO the message I put for the event "Aborted" and I don't know why !

Could you help on this ?

Thank you,
Luigi
> To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/32399ed0-482d-4d14-addf-1cb066640a05%40runmyprocess.com.
>
>
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
>
>
>
>
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
>
> To post to this group, send email to suppor...@runmyprocess.com.
>
> Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
>
> To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/CA%2B3gzEj%2BwodJtX0_Krk-ih8Fu1J_MMLuC2vC5aZo%3DmCTkA6Skw%40mail.gmail.com.
>
>
>
> For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.
>
>
>
>
>
>
>
> --
>
> Fujitsu - RunMyProcess
>
> ---
>
> You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
>
> To post to this group, send email to suppor...@runmyprocess.com.
>
> Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
>

Luigi

unread,
Jun 22, 2017, 5:48:05 AM6/22/17
to Fujitsu RunMyProcess Developer Community, ciche...@fatergroup.com
Hello,
I made some further test putting alerts for API events Not started, Aborted and Cancelled.

Now, the API is triggered and the process called is completed.
The script for "Completed" event is executed, but RMP ALWAYS executes also one of the error events, thats is:
- if "Not started" script is enabled, RMP executes it,
otherwise
- if "Aborted" script is enabled, RMP executes it,
otherwise
- if "Cancelled" script is enabled, RMP executes it.

If none of the above error events is enabled then the API process is triggerd and exeuted BUT the "Completed" event is NOT executed.

Could you, please, help on this problem ?
Is there something I could check or try ?

Thank you !
Reply all
Reply to author
Forward
0 new messages