Custom Agents in IFS

Hi
The iFS discussion forum area seems to have disappeared, and this seems to be the most suitable area to post the question. Can anyone supply me with example custom agents (not the example on OTN) that they have written. I am looking for an agent that manipulates data within the datafile, and also puts a copy of a data file into a different folder. Any examples would be appreciated.
Many Thanks
Caroline

Howdy:
In the iFS Online Resources HTML whitepaper,
there are several examples for creating and
deploying servlets. See the section "Creating a Simple Content Management Application." Please check out: http://technet.oracle.com/products/ifs/htdocs/resources/index.htm
Hope this helps,
Dennis Dawson

Similar Messages

  • Error while compling the custom agent

    I am trying to develop custom agent for ifs using jdeveloper. I have attached following .jar file with project.
    repos.jar,vbjorb.jar,release.jar,xmlparser2.jar, util.jar, tools.jar, adk_1081.jar, lclasess1.jar
    I am getting following error while compiling.
    Error: (50) constructor IfsAgent() not found in class oracle.ifs.agents.common.IfsAgent.
    Error: (86) method required, but value found.
    Can anybody help me to fix this error?
    Thanks
    Sanjay

    Looks like the call to your agent is missing some parameters.
    Here is the constructor for IfsAgent:
    IfsAgent(java.lang.String name, java.lang.String[] args,
    java.lang.String parameterTableSection, oracle.ifs.agents.manager.ServerManager manager)
    This is the description from the iFS Online Resources whitepaper section on creating a simple agent.
    The constructor for an Agent always contains these 4 arguments. The arguments are stored in the ServerManager definition file and are
    passed to the Agent class when it is instantiated at runtime.
    name is the name of this Agent.
    args are any custom arguments you want
    to pass to your Agent.
    sectionName identifies the section
    specfic to this Agent in the common
    ParameterTable. In practice, it is
    the name of this Agent.
    manager is the name of the ServerManager
    that hosts this Agent at runtime.
    I hope this helps.
    -D

  • IFS custom Agent, Unable to start server

    Hi, I want to write a custom agent that is for a extended Folder classobject.
    Whenever a file (Object ) is added to this agent. The object is copied to a remote location.
    Now i have written the class, compiled it and used IFS manager to launch it at startup.
    In IFS log i see the following error
    /* Begin ERROR */
    6/10/02 3:49 PM NodeManager: Initialize: loading server LaunchPadAgent
    6/10/02 3:49 PM NodeManager: Initialize: unable to start server LaunchPadAgent
    oracle.ifs.common.IfsException: IFS-45086: Unable to load server (LaunchPadAgent)
    oracle.ifs.common.IfsException: IFS-45260: Unable to construct server manager (LaunchPadAgent)
    oracle.ifs.common.IfsException: IFS-45261: Unable to construct server oracle.ifs.agents.examples.LaunchPad (error invoking constructor)
         at oracle.ifs.management.domain.ServerManager.<init>(ServerManager.java:81)
         at oracle.ifs.management.domain.NodeManager.loadServer(NodeManager.java:1053)
         at oracle.ifs.management.domain.NodeManager.bootstrap(NodeManager.java, Compiled Code)
         at oracle.ifs.management.domain.NodeManager.access$4(NodeManager.java:1281)
         at oracle.ifs.management.domain.NodeManager$3.run(NodeManager.java:562)
    /* End ERROR */
    I have used the Skeleton of the class from the example given in the IFS documentation. Also available from
    http://technet.oracle.com/docs/products/ifs/doc_library/devguide/agents.htm
    Has anybody come across this error
    Any link will be appriciated.
    Please help us ASAP.
    Regards
    Rakesh

    Rakesh, not sure if I'm on the right track with this suggestion, but I'll volunteer it in case it's useful.
    The error you're seeing might be occurring because the class path provided to the JVM you're starting the Server Manager instance under does not provide access to your new agent .class file. If this is the case, you can likely provide access to your agent by specifying the appropriate directory or jar file reference as the value of the IFS_CUSTOM_CLASSPATH environment variable prior to starting the Server Manager.
    The way that IFS_CUSTOM_CLASSPATH plays in the game is that the canned Oracle startup scripts for the Server Manager first invoke "ifsenv.sh" to setup the commonly needed iFS environment variables such as IFS_CLASSPATH & IFS_CLASSPATH. The setting of those variables includes a reference to $IFS_CUSTOM_CLASSPATH at the appropriate point to include whatever it specifies as part of the class path iFS will run with. This approach provides us folks wishing to customize iFS a way of getting our class implementations into the iFS class path.

  • MIRO  posting of import Turnover Tax from the customs agent

    Dear SAP Gurus,
    I need your inputs for the below described issue:
    Customs agent send us invoice for import turnover tax which he pays   at customs in behalf of our company.
    We have purchase prders for the imported materials.
    How can we handle  such import turnover taxes which is a compensation for the VAT to be paid for that materials in the importing country.
    Do we need to create a new tax code and if yes which % , bcs. the paid import turnover tax is different depending on imported goods. How can we post in miro directly on the  import turnover tax account? The system does not allow it bcs. of base amount problem.
    I am not sure if the creation of a new condition record for this tax type can help bcs. we need it to post in Miro from another vendor (customs agent) than the vendor of the Purchase order.
    We should be able to show these taxes in VAT report too.
    Your inputs higly appreciated.
    Thanks and Kind Regards
    Tarik

    post via FB60 onto VAT Acccount (indicator < and flag 'calculate tax base' while posting)
    depending on the VAT reporting requirements, you can need a new VAT code.

  • How to make a custom agent with dynamic properties that can be changed with OMS

    I have made a custom agent where old documents will be purged. We are doing this with a parameter purgeDate. Now we do this from the Oracle9IfsManager.
    So if we want a new date, we have to unload and load the server to use the new date.
    I see that some agents can be changed from the OMS. Than they use the new settings after restart.
    Who can I do this?

    As an FYI: I just solved the problem by going the "low road." I'll be a bit laborious in case someone else wants a solution at a later date (I know I Googled the topic and found nothing). I experimented by simply:
    Opening a new email message
    Selecting my custom template
    Copying the custom signature (Select All)
    Opening another new email message
    Selecting Edit on the Signature pulldown menu
    Hitting the plus symbol to create/add a new signature in the pane
    Pasting into the new signature
    Naming it
    Selecting "Choose signature" at the bottom of the signatures pane
    And violà!!
    It now appears as a possible selection *and* as the default.
    Better yet - it is now my default and will work as a reply to an email.
    I think I got it all right in the list above.
    OK, granted, this is a pretty simply signature - a list of my website, SoundCloud, twitter etc with those names in bold and a graphic of my color logo - but... it works! YMMV.
    Give it to Apple to make it so simple that any fool could do it (that would be me), you wouldn't need a "specialized" app, and - of course - there wouldn't even be instructions on how to do it!
    Best,
    Joel

  • Partners from function Customs agent cannot be processed online

    hello everyone
    When I try to add a partner role TZ customs agent in the shipment document (VT02N)
    i get the following message:
    Partners from function Customs agent cannot be processed online
    Message no. VPD032
    Diagnosis
    Partners in the specified partner function cannot be processed online. The program generates them and completes the data automatically.
    however when i try to add a 'TF' partner - its working...
    thanks ahead
    Eyal

    Hello Eyal,
    Goto transaction "VOPA". For Customer master, Click on Partner Procedure
    Double click on your partner procedure [Example WE: Ship-to Party].
    In the next screen, check if the partner function 'TZ' is defined or not.
    If the same is not present there, insert the partner function. Also, note that the partner function 'TF' would be present there.
    These steps would resolve your issue.
    Regards,
    Gauravjit.
    Reward points if the resolution is helpful.

  • Uning UNC paths for custom agents

    Has anyone had any success trying to launch a custom agent using the UNC path to the executable? The .err generated includes the following lines:
    2008/10/02 09:48:29 c:\jfsrvr\Bin\jfserver.exe: [307]Launching task '"\\Rx2k3WebPIF21\RmtAgents\DatFileInsert.exe" -i c:\jfsrvr\collector\job_1.dat -o dan.txt -f "C:\Data - Test\2-DatFileInsert\TXT Files Containing Insertion Lines\g_blank.txt" -a FILE -r ABOVE'.
    2008/10/02 09:48:40 c:\jfsrvr\Bin\jfserver.exe: [314]Agent exit message: [313]*** Spawn of agent may have failed ***
    Is Central limited to running agents that are locally installed? I have added the following to the JFServer.ini file:
    [DatFileInsert]
    ExePath=\\Rx2k3WebPIF21\RmtAgents
    IniFileName=

    I was also concerned about the parameters so I moved the custom agent to the box Central is running on and it ran fine when the path to the executable was local to Central.
    I removed all the optional parameters and made all the required ones very simple (ie. no spaces in paths and no quotes) and received the same error.
    I've had success with UNCs in the program options line of tasks but haven't had any luck in the program name line.

  • Custom agent stops receiving events after long period

    What would cause a custom agent to stop receiving events?
    I have two custom agents that register to listen for events from PublicObject. These agents run along with some custom timed-based agents in a ServerManager instance.
    After about eight days, events are not being sent to the custom agents. The timed-based agents run fine after this period.
    I have observed that if the CUPServer is running this will stop events being sent to the custom agents. The CUPServer was not running for the above case.

    I can't think of anything that would cause that.
    Do you want to post your code, and see if anyone detects any problems?

  • How to use a custom servlet in iFS?

    Hi,
    I'm creating a custom servlet to download files from iFS to local drive. My question is where should I put the servlet class file, and how do I invoke this servlet from a ifs jsp file?
    I'm running iFS 1.1.9, with JWS web server.
    Thanx.
    [email protected]

    Howdy:
    In the iFS Online Resources HTML whitepaper,
    there are several examples for creating and
    deploying servlets. See the section "Creating a Simple Content Management Application." Please check out: http://technet.oracle.com/products/ifs/htdocs/resources/index.htm
    Hope this helps,
    Dennis Dawson

  • Hope my customer agent experiences are not a sign of bad things to come

    Very frustrated and uneasy after spending over 2 hours yesterday to order new X1 and Internet service. It's a roll of the dice to get someone that's helpful, friendly and knowledgable of services. I originally ordered just xfinity internet online last Thursday. I had called on Saturday to ask a couple of questions and was speaking with a wonderful agent who explained the TV options very well. I decided to give it a couple days to think about it and set up a call back with her on Monday (yesterday). Didn't get a call so I call myself. This is when my patience was tested. Not because I was on hold waiting but because of agents giving me incorrect information, being unpersonable, and inpatient with me. Finally after the 4th call back, I was able to get the correct information and the order completed! I live in Chicago and don't have any other option for fast internet. I must be on the block that doesn't have other options?? I currently have stone aged DSL and Dish Net. Time to move on!! Hope I'm happy with my decision. Is the customer service that bad??

    Hello Petey48,
    Sorry to hear about the poor experience. Feedback like this is an important step towards getting things corrected. Your feedback will be sent as a coaching opportunity for the agents you were displeased with.
    Thank You

  • Re: Custom Agents

    I have received word that the code in my earlier example may not work all
    the time because of the order in which the partition shutdown activities
    are executing. It is possible for your code that responds to the state
    change event of its own active partition agent to be interrupted and never
    completed because of this.
    I'm glad I put the disclaimer in the example!
    There is an enhancement request in the system to help with this.
    - Tim
    Timothy Quinn Phone: +1 847 635-9884
    Fort&eacute; Software, Consulting Fax: +1 847 635-9027
    Suite 480 HQ Voicemail: +1 510 986-3809
    10275 West Higgins Road Mailto:[email protected]
    Rosemont, IL 60018 http://www.forte.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Some apps have had success using the following technique to recognize when
    a partition has been asked to shut down. See if it might meet your needs.
    By the way, this code is presented as-is with no warranty expressed or
    implied, etc.
    Your TOOL code can register for state changes on the active partition
    agent. This is the same piece of the Forte-provided system management
    infrastructure that appears in econsole as the active partition agent. It
    corresponds to a running partition.
    If the Init method of your service object uses
    start task self.AwaitShutdown ();
    and you write AwaitShutdown to include this
    PartAgent : SystemAgent = SystemAgent(task.Part.ActPartAgent);
    event loop
    when task.shutdown do
    task.part.LogMgr.PutLine ('task.shutdown -> exiting loop');
    exit;
    when PartAgent.StateChange
    ( newState = state
    , info = origin
    ) do
    task.part.logmgr.put ('State change to ');
    task.part.logmgr.putline (info.StateName);
    case newState
    when SM_RUNDOWN do
    task.part.logmgr.putline ('Running down -> exiting loop');
    end case;
    end event;
    ... they your code can detect when the shutdown request arrives and you can
    see which mechanism has been triggered.
    Also remember that the rundown state change does not occur unless you use
    Stop Remote Partitions when you run from the workshops.
    There was also some discussion about this on this mailing list in the past.
    You might check the archive for more info.
    Hope this helps.
    - Tim
    Timothy Quinn Phone: +1 847 635-9884
    Fort&eacute; Software, Consulting Fax: +1 847 635-9027
    Suite 480 HQ Voicemail: +1 510 986-3809
    10275 West Higgins Road Mailto:[email protected]
    Rosemont, IL 60018 http://www.forte.com
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

  • Custom clearing agent payment issue

    Dear experts
    Purchase  order  was created  and  the  material was  received  on   port (imports).
    custom clearing  agent has  cleared  the goods.
    now   custom   clearing  agent needs  his  charges.
    the  inv  from vendor with reference to PO is not received.
    any  solution  to  settle  the  custom  clearing  agent  payments.
    till  the  inv. from  vendor  not  received custom agent payment  is is pending.
    what  should  be  done  to  resolve  this  issue.

    Hi,
    Copy one of your freight condition types and create a new condition type as custom clearing charges, please ensure that condition category is Delivery charges (B). In calculation schema enter this condition type at the appropriate position. Now when creating the PO, enter this condition type put the value, then select this condition type and go to details, here you will have a field to enter the vendor code, there key in the vendor code of custom clearing agent.
    Now in MIRO enter PO no. and choose layout for Planned delivery cost, you can now enter the value for your agent and pay him.
    Note: Please use this to pay only for service charge for the agent, for payment of custom duty you should use the condition type for custom duty and key in the vendor code for the customs clearing office there so that its easy to differentiate between custom duty and the service charges charged by clearing agent.
    Regards
    Chandra Shekhar

  • Multiple ifs services each with its own agents

    I would like to be able to do the following:
    Ability to run multiple ifs applications on the same box (beefy one) each with its own set of agents. Ifs 1.0 config tool (ifsconfig) always creates IfsDefault.props file. Can I rename that file to something else and use the new name as the service name in the application?
    What about the agents defs? Do I need different server managers? How do I tell which service relates to which server manager?
    I would like to know how to do this on both ifs 1.0 and ifs 1.1.
    Thanks.
    null

    Does anyone know the answer to this?

  • [commission agent] : deal with a customer with many agent

    Dear SAP Experts,
    i am trying to set up the commission agent with rebate agreement. Here is my situation:
    1. i have 1 customer (customerA)
    2. i have 2 agents (agentA & agentB). The agents are created as customer, both are rebate recipients
    3. i have assigned agentA & AgentB to customerA agent partner function
    4. i have created 2 customer rebate agreements rebA & rebB for agentA & agentB as rebate recipient, and customerA as a customer in condition records in both rebate agreement
    5. i have created 1 sales order-delivery-billing for customerA with agentB as agent partner function
    6. Here is my problem:  there are 2 rebate conditions BO03 appearing in SD transaction, each rebate condition represent rebA & rebB. It is like there is no link between rebate recipient in rebate agreement & agent partner function in SD transaction.
    My expected result is there will be only 1 rebate conditions BO03 appearing in SD transaction, represents rebB (since the agent partner function in transaction is agentB)
    My question is, how do you expert make a link between rebate recipient in rebate agreement & agent partner function in Sd transaction?

    HI
    1. Create all the agents Vendor master or customer master (create Separate Account group)
    2. create new partner Functions Z1, Z2, Z3 etc.,
    2. Assign those agents to customer master .
    3. Insert those fields in KOMKAZ (SE11) take the assistance of ABAP
    4. insert those fields in pricing field catelog
    5. Create Z Condition types and assign in that pricing procedure
    6. create 2 account keys , one is or account key and other one is for Accruals 
    7. Maintain the condition record with combination of Customer / agents
    8. Maintain the logic in MV45AFZZ(SE38) ,  userexit_pricing_prepare_tkomk
    9. Maintain the Logic in RV60AFZZ (SE38),   userexit_pricing_prepare_tkomk
    10 Create one Z- Report
    Regards,
    Prasanna

  • Problem while creating a custom document using JAVA API in the current Folder

    I am trying to create an instance of a custome type from the API. I have created a custom type via XML. I have associated a JSP with the custom type thru iFS manager. This jsp provides an interface for the user to enter various data. On submit I call some other jsp also loaded into the /ifs/webui/jsps which calls a method in the java class to create an instance of the above mentioned type. This instance needs to be created in the current directory and not in the home directory of the user. I have written a java program which when run from JDeveloper connects to the repository and creates the object, but not as a foldered object. If I load this class into custom_classes directory, I get an exception. I am attaching the code also here which does the actual processing.
    package cms;
    import oracle.ifs.agents.common.*;
    import oracle.ifs.agents.manager.*;
    import oracle.ifs.agents.server.*;
    import oracle.ifs.beans.*;
    import oracle.ifs.common.*;
    public class ContentModule extends Object {
    public static final String CLASSNAME = "CONTENT";
    public static final String TOPICID_ATTRIBUTE = "TOPICID";
    public static final String SITEID_ATTRIBUTE = "SITEID";
    LibrarySession m_session;
    public ContentModule() {
    connectToRepository();
    createDocument("AM5","s");
    public void connectToRepository(){
    try{
    LibraryService l_service=new LibraryService();
    CleartextCredential l_credential = new CleartextCredential("system","manager");
    ConnectOptions l_options=new ConnectOptions();
    l_options.setServiceName("IfsDefault");
    l_options.setServicePassword("ifssys");
    m_session=l_service.connect(l_credential,l_options);
    }catch(IfsException ex){
    ex.setVerboseMessage(true);
    ex.printStackTrace();
    public void createDocument(String p_docName,String p_docContent){
    try{
    DocumentDefinition l_doc=new DocumentDefinition(m_session);
    l_doc.setClassname(CLASSNAME);
    long newId1=5;
    long newId2=5;
    FolderPathResolver l_currentPath=new FolderPathResolver(m_session);
    Folder l_currentFolder=l_currentPath.getCurrentDirectory();
    l_doc.setAddToFolderOption(l_currentFolder);
    l_doc.setName(p_docName);
    l_doc.setContent(p_docContent);
    AttributeValue av1 = AttributeValue.newAttributeValue(newId1);
    l_doc.setAttribute(TOPICID_ATTRIBUTE,av1);
    AttributeValue av2 = AttributeValue.newAttributeValue(newId2);
    l_doc.setAttribute(SITEID_ATTRIBUTE,av2);
    Document l_document=(Document) m_session.createPublicObject(l_doc);
    }catch(IfsException ex){
    ex.setVerboseMessage(true);
    ex.printStackTrace();
    public static void main(String[] args) {
    ContentModule contentModule = new ContentModule();
    Any help will be highly appreciated.
    Thanks

    Please print out the Verbose Stack Trace generated when you run this application.
    I suspect that you FolderPathResolver is not pointed at the directory you think it is. You might want to try printing out
    I_CurrentFolder.getAnyFolderPath();
    and I_CurrentFolder.getName();
    null

Maybe you are looking for

  • How do I create a new iCloud account?

    I've tried to find out how to create an iCloud account for my nephew's new iPod touch.  When I look at the instructions online there's always sort of a catch 22. You need an apple ID, for that you need an emailaddress. I would want that to be a '[ema

  • IOS 6.1.4 - Apple Native Email Client - Push Notification is not working

    Hi, I just upgraded to IOS 6.1.4 this morning no issues Upgrade went well. Now My Email Push Notfication is not working. 1. Bussiness Gmail Account - Configured as Exchange 2. Hotmail Account - Configured as Exchange Both Account - Push is ON if some

  • Setting up Ipod Touch to Network

    Hi all, am trying unsuccessfully, to add Ipod Touch to my wireless network. I have the password to my network, but still can't connect. Do you have to put anything other settings in ie. ip address, subnet mask etc? Thanks Sharon

  • Solaris 10 on Newisys 4300 - Cannot see disks.

    Dear All, I am trying to install Solaris 10 on this machine but after going through the initial install screens (indentify host/network setup) it quits the install process complaining that no disks are found. The machine has an LSI Logic MegaRaid SCS

  • Problem installing SP3

    Hello! I'm trying to install SP3 on our Exchange 2010 with SP1. It starts installing, then gets an error at "Hub Transport Role". ExchangeSetup.log says: [ERROR] The operation couldn't be performed because object 'mail.domain.com' couldn't be found o