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
I need an Agent to run a Request Handler
Dwight_Lillie__(uclluser7_-_(deleted))
Does anyone know how can I create an agent that runs a request handler? I know how to create agents and I know how to create a RH but how can I create an agent that runs a RH?we are running enterprise 9.1.3Background.In 9.13 you write an request handler when it is working you rewrite the front end to run the agent. There agent runs fine in development but fails in production. the Request Handler runs fine in both envionments.Pete Robertson
Find more posts tagged with
Comments
eLink User
Message from Nair, Krishnankutty N. via eLink Maybe the gurus will chip in but an agent runs(spawns) its ownthread and executes what is in its execute method.Look in theagentcontroller code.It executes all outstanding agents based on aninternal five minute heartbeat.If you wanted to run a timed sequence of a request handlercouldn't you run it with a scheduler or at with the commandlike in a batch fileiexplore.exe
http://yourlivelinky/livelink.exe?mymodule.myRHhandler-----Original
Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Monday, July 17, 2006 3:49 PMTo: eLink RecipientSubject: I need an Agent to run a Request HandlerI need an Agent to run a Request HandlerPosted by Robertson, Pete on 07/17/2006 04:47 PMDoes anyone know how can I create an agent that runs a request handler?I know how to create agents and I know how to create a RH but how can Icreate an agent that runs a RH?we are running enterprise 9.1.3Background.In 9.13 you write an request handler when it is working you rewrite thefront end to run the agent. There agent runs fine in development but fails in production. theRequest Handler runs fine in both envionments.Pete Robertson[To reply to this thread, use your normal E-mail reply function.]============================================================Discussion: Development Discussion
https://knowledge.opentext.com/knowledge/llisapi.dll/open/786303Livelink
Server:
https://knowledge.opentext.com/knowledge/llisapi.dllTo
Unsubscribe from this Discussion, send an e-mail tounsubscribe.development@elinkkc.opentext.com.
Donna Nalls
Hi Pete,are you trying to invoke a custom request handler with a custom change agent?sounds like you already have the agent that you want, it is just nor processing correctly in your production environment?are you sure it is configured to run? did you check the agentschedule table?donna
Dwight_Lillie__(uclluser7_-_(deleted))
Thank you Donna,I did check the agent schedule table. I got a sched id from agentsequence, and set the schedule. I have the agents running in dev as agents and the agent kicks off, it never completes. When I run the code as a RH, the job completes.
Dwight_Lillie__(uclluser7_-_(deleted))
Krishnankutty ;thanks for the clues re the agentcontroler.I dont know how to run a batch file from the batch processor.I will investigate.here is how I swap the front end code around to change from batch to RH processing./* for batch processingfunction Assoc Execute() Object prgCtx = .fprgctx Record r *//* for request handler processingfunction Dynamic Execute( Dynamic ctxIn, Dynamic ctxOut, Record r ) object prgctx = .prgsession() */
Donna Nalls
Hi Pete,hhhmm, i want to give you good advice here and i think you have several options, so i'm going to be a bit more inquisitive, if you don't mind.Am i understanding correctly that you want to run the same code from either a request handler or a change agent?? It will do the same processing, just the difference of being invoked real time or on a schedule?If that is the case, i would suggest that you move the heavy processing into utility scripts...then, you are using the RH execute and Change Agent Execute as the shell for invoking your processes.I noticed your posting to Krishna that you are simply modifying the prgCtx based on whether this is processed as RH or Change Agent...if you move this to utility scripts, you can pass in the prgCtx and another other needed args.The other benefit to this approach is that you are not maintaining duplicate code....If i have misunderstood what you are trying to do, please let me know and i will have another shot.thanks,donna
eLink User
Message from Nair, Krishnankutty N. via eLinkThe utility scripts are the right way to do it.I also debug changeagents like thisTo test the scripts in builder you could do this.You probably know thisalreadyOld 9.1#ifdef DOCTo test with builder... - In opentext.ini set/add the following:[options]RunWithoutLogin=TRUE - In the browser type the following URL:
http://......./livelink.exe?func=notify.runagent
This will run all the outstanding agents.If you know your agentidyou could do something like
http://localhost/livelink/livelink.exe?func=notify.runagent&agent_list={'9883'}In
this case I am debugging my agentid 9883#endifIn new 9.5 sp1#ifdef DOCTo test with builder... - In opentext.ini set/add the following:[options]RunWithoutLogin=TRUE - In the browser type the following URL:
http://......./livelink.exe?func=agent.runagent
This will run all the outstanding agents.If you know your agentidyou could do something like
http://localhost/livelink/livelink.exe?func=agent.runagent&agent_list={'9883'}In
this case I am debugging my agentid 9883#endif -----Original Message-----From: eLink Discussion: Development Discussion[mailto:development@elinkkc.opentext.com] Sent: Tuesday, July 18, 2006 11:51 AMTo: eLink RecipientSubject: Hi Pete,Hi Pete,Posted by Nalls, Donna on 07/18/2006 12:49 PMHi Pete,hhhmm, i want to give you good advice here and i think you have severaloptions, so i'm going to be a bit more inquisitive, if you don't mind.Am i understanding correctly that you want to run the same code fromeither a request handler or a change agent?? It will do the sameprocessing, just the difference of being invoked real time or on aschedule?If that is the case, i would suggest that you move the heavy processinginto utility scripts...then, you are using the RH execute and ChangeAgent Execute as the shell for invoking your processes.I noticed your posting to Krishna that you are simply modifying theprgCtx based on whether this is processed as RH or Change Agent...if youmove this to utility scripts, you can pass in the prgCtx and anotherother needed args.The other benefit to this approach is that you are not maintainingduplicate code....If i have misunderstood what you are trying to do, please let me knowand i will have another shot.thanks,donna[To reply to this thread, use your normal E-mail reply function.]============================================================Topic: I need an Agent to run a Request Handler
https://knowledge.opentext.com/knowledge/llisapi.dll/open/6971404Discussion
: Development Discussion
https://knowledge.opentext.com/knowledge/llisapi.dll/open/786303Livelink
Server:
https://knowledge.opentext.com/knowledge/llisapi.dllTo
Unsubscribe from this Discussion, send an e-mail tounsubscribe.development@elinkkc.opentext.com.