Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [OPEN] WF 8.0.08 - Fex that runs a set of schedules - is it complicated?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[OPEN] WF 8.0.08 - Fex that runs a set of schedules - is it complicated?
 Login/Join
 
Expert
posted
I want to write a fex that runs 16 schedules. I would like to collect the Job IDs for these runs.

Is this complicated? Apparently I should be using RESTful web services for this. Can I use RESTful web services in a fex? If so, how?

Thanks very much,

This message has been edited. Last edited by: Francis Mariani,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Guru
posted Hide Post
Did you find and download the doc on this?

I use RESTful calls for RC jobs. I don't call from a fex. We wrote a little JAVA app that makes these calls as we wanted Control-M to run these jobs as successors of data loads.


WebFOCUS 8.1.05
 
Posts: 496 | Registered: January 04, 2008Report This Post
Platinum Member
posted Hide Post
Hi,

We call schedules from a fex. Basic steps were to set up a master to use for the restsignon and then another for running the schedule.

Then you table the master and print the path and response

We also use edamail to send us information on errors


Webfocus 8.0.7 on Windows
 
Posts: 176 | Location: Ohio | Registered: October 26, 2006Report This Post
Expert
posted Hide Post
quote:
Basic steps were to set up a master to use for the restsignon and then another for running the schedule

CLH, is this documented? I'd rather not have to write a Java program (does IBI provide a GUI to write a Java program?).

Thanks very much,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
Platinum Member
posted Hide Post
It's hard to find as the doc for it was all over the place. Here are the steps once you have Rest License

1. Set up a rest connection using rest adapter. Only thing we needed to change was the Base URL to match our server name (note this is url used to access the client)
2. Create metadata for restsignon and runsched these were a challenge and IBI helped with this
3. Write a fex for signon this has to be executed every time basic code is
TABLE FILE RESTSIGNON
PRINT RETURNCODE RETURNDESC
IF IBIRS_USERNAME EQ USERID
IF IBIRS_PASSWORD EQ USERPASS
ON TABLE SAVE AS SIGNRETURN
END
-RUN

we added code to check the return code etc..
4. a fex to run the schedules
This fex first executes the restsignon fex

Then it
TABLE FILE RUNSCHED
PRINT
RUNSCHED.M6ILO.IBIRS_PATH AS 'Schedule Path'
RUNSCHED.M6ILO._RESPONS AS 'Job id'
IF IBIRS_PATH IS(PICKME)
ON TABLE SET PAGE-NUMNOLEAD
ON TABLE NOTOTAL
ON TABLE PCHOLD FORMAT HTML
END

PICKME was an alpha file created earlier that in my case queries WF_REPOSOBJ and concatenates PRT_PATH with OBJNAME for the schedule I want to run (passed in as a variable)

That's basically it. We have an alert schedule that when conditions are met as a post process runs the RUNSCHED fex passing in the schedule we want to run if only one or use a modified version of the fex if more than one.

Hope this helps to get you started
Crystal


Webfocus 8.0.7 on Windows
 
Posts: 176 | Location: Ohio | Registered: October 26, 2006Report This Post
Expert
posted Hide Post
CLH,

Thanks for the detailed explanation. I'll look into it soon.

Regards,


Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [OPEN] WF 8.0.08 - Fex that runs a set of schedules - is it complicated?

Copyright © 1996-2020 Information Builders