Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Content Management (Extended ECM)
API, SDK, REST and Web Services
Can LAPI call custom RH
Sapna_Shah_(sapna.shah_-_(deleted))
Hi,I am new to LAPI.. I wanted to knwo can I use LAPI to call my custm RH.. Meaning I have a RH in OScript in my custom module.. Can I use LAPI to call that? If so how?? any code sample??thxsapna
Find more posts tagged with
Comments
Appu_Nair
Does that need to be served up in as a API call eg such asAddDocument(with a lot of api parameters).The reason why I ask is any programming language out there can do a URL command such as?func=.API's are useful when you want to bundle all the activity behind a certain transaction like (Adding a document thru the web GUI) to be exposed .If that is really your intention look at this wiki article that walks you thru developing your own api.
http://communities.opentext.com/communities/llisapi.dll/wiki/7967685/How to create a new LAPI APIBTW:LAPI
is in sunset mode so you probably should expose it as a webservice.
Support_Lloyds_Register
Message from Kashelkar, Vishal via eLinkI am quite sure, it is possible to do that but process is quite tedious. 1 .Either modify existing API ospace (not recommended) or create a new Ospace. (Check other API ospace implmentation)2. Implement your RH functionality in New/Existing API Ospace.3. Generate a source code file for your progrmming language. There is a function in API ospace which will help you do that. 4. Use the generated source file in your project to call RH. Vishal________________________________From: eLink Discussion: LAPI Discussion [mailto:lapi@elinkkc.opentext.com]Sent: Thu 21/05/2009 10:59 PMTo: eLink RecipientSubject: Can LAPI call custom RHCan LAPI call custom RH Posted by sapna.shah (Shah, Sapna) on 2009/05/21 13:24 Hi,I am new to LAPI.. I wanted to knwo can I use LAPI to call my custm RH.. Meaning I have a RH in OScript in my custom module.. Can I use LAPI to call that? If so how?? any code sample??thxsapna ________________________________[To reply to this thread, use your normal E-mail reply function.] Discussion: LAPI Discussion Livelink Server: knowledge-wlweb01 To Unsubscribe from this Discussion, send an e-mail to unsubscribe.lapi@elinkkc.opentext.com .
Sapna_Shah_(sapna.shah_-_(deleted))
What I am trying to do is say at certain time of day the cron job invokes lapi that will call my custom RH in my custom ospace that will automatically initiate a wf or reassign wf task based on certain rules, send out notification.. It is easy for me to write code in ospace RH, instead of learning how to do it via LAPI or webservice..
Sapna_Shah_(sapna.shah_-_(deleted))
I am not clear on what do you mean by API ospace?? I already have my own ospace with a RH like a standar one that you can creat from builder.. Do you mean this or a different one? Can you provide me soem more details on what API function can I call to generate source file?
Appu_Nair
if I were you it will take less than 10 mins to move what your RH is doing into a Root object.Then I would create an agent about 2 hrs.Then I would schedule the agent which would execute to whetever schedule you want....
Sapna_Shah_(sapna.shah_-_(deleted))
Thanks Appu.. My first preference was to do this using my custom Agents.. But we were looking into other options and hence the was the Q..From your answer brings another Q.. YOu say to move RH to Root object ( of my ospace) and have agents call that.. So is it that agents can't call RHs??
Appu_Nair
I will let you in on a trick I learned that Donna Nalls posted here.One of the biggest pain points of developing your agents is debugging.The func=agent.runagent runs all agentid's,to a certain extent my good friend John Simon figured out that the call would take argument to a agentid but that too has its problems.So what I do is after I create a RH I look at the code and then create a object under the root that way both the agent as well as the RH (for manual running a nd test can be accomplished).I hope the attached screen shot and excerpts of code might help you.
https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=16362617&objAction=download&viewType=1My
favorite post on customagents if you are new to agents
https://knowledge.opentext.com/knowledge/llisapi.dll?func=ll&objId=15048061&objAction=viewBTW
agents are executed by the oscript engine so it executes under the context of the userid usually 1000.an RH can only be executed from a web page as you can see it expects a function prototype and you are free to try and make the agent call the RH I am sure it is possible somehow.I just don't know and I am happy with this method.
Sapna_Shah_(sapna.shah_-_(deleted))
Thanks so much Appu.. All that links and the custom module for agents is very helpful for what I am trying to do.. Thanks again for your help.